From 959528b25ebf33f2b77d8ea56abafc34fd1c851a Mon Sep 17 00:00:00 2001 From: Paulo H3nrique Alves Date: Wed, 26 Mar 2014 18:28:40 -0300 Subject: [PATCH] Update bootstrap-wizard.js Bug correction when this.title is undefined. Console browser error = Uncaught TypeError: Cannot read property 'length' of undefined. --- src/bootstrap-wizard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap-wizard.js b/src/bootstrap-wizard.js index 80dc273..06e6c95 100644 --- a/src/bootstrap-wizard.js +++ b/src/bootstrap-wizard.js @@ -526,7 +526,7 @@ event.data.setCard(index); }); - if ( this.title.length != 0 ) { + if ( this.title && this.title.length != 0 ) { this.setTitle(this.title); }