Skip to content

Commit

Permalink
Toolbar: Only initialize this.pagecontainer if the toolbar is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof committed Dec 5, 2014
1 parent ba30238 commit 989d1cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/widgets/fixedToolbar.js
Expand Up @@ -35,8 +35,8 @@ define( [ "jquery", "../widget", "../core", "../animationComplete", "../navigati

_create: function() {
this._super();
this.pagecontainer = $( ":mobile-pagecontainer" );
if ( this.options.position === "fixed" && !this.options.supportBlacklist() ) {
this.pagecontainer = this.element.closest( ":mobile-pagecontainer" );
this._makeFixed();
}
},
Expand Down

0 comments on commit 989d1cb

Please sign in to comment.