Permalink
Browse files

Wrong check condition for pageshow should not be a part of this.

  • Loading branch information...
1 parent d754bb6 commit 71833fd919157918d304b0f7b215d502a40be279 @MauriceG committed May 2, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 js/jquery.mobile.fixedToolbar.js
@@ -135,14 +135,10 @@ define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.core", "./jquery.
self.updatePagePadding( thisPage );
}
})
- .bind( "pageshow", function(e, ui){
+ .bind( "pageshow", function(){
var thisPage = this;
if( o.updatePagePadding ){
- // padding on pageshow is just needed on first toolbar-page
- if ( !ui.nextPage ) {
- self.updatePagePadding( thisPage );
- }
-
+ self.updatePagePadding( thisPage );
$( window ).bind( "throttledresize." + self.widgetName, function(){
self.updatePagePadding( thisPage );
});

0 comments on commit 71833fd

Please sign in to comment.