Permalink
Browse files

Fixed toolbar: Revert to using .one(). Re: #5361

  • Loading branch information...
gabrielschulhof committed Dec 12, 2012
1 parent 5b8d806 commit 64a8d97d92eb932fcf565203e9257192716f862d
Showing with 3 additions and 6 deletions.
  1. +3 −6 js/widgets/fixedToolbar.js
@@ -166,12 +166,9 @@ define( [ "jquery", "../jquery.mobile.widget", "../jquery.mobile.core", "../jque
nextFooter.add( nextHeader ).appendTo( $.mobile.pageContainer );
this._on( ui.nextPage, {
pageshow: function() {
nextHeader.prependTo( ui.nextPage );
nextFooter.appendTo( ui.nextPage );
this._off( ui.nextPage, "pageshow" );
}
ui.nextPage.one( "pageshow", function() {
nextHeader.prependTo( this );
nextFooter.appendTo( this );
});
}
}

0 comments on commit 64a8d97

Please sign in to comment.