Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 64a8d97

Browse files
author
Gabriel Schulhof
committed
Fixed toolbar: Revert to using .one(). Re: #5361
1 parent 5b8d806 commit 64a8d97

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

js/widgets/fixedToolbar.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,9 @@ define( [ "jquery", "../jquery.mobile.widget", "../jquery.mobile.core", "../jque
166166

167167
nextFooter.add( nextHeader ).appendTo( $.mobile.pageContainer );
168168

169-
this._on( ui.nextPage, {
170-
pageshow: function() {
171-
nextHeader.prependTo( ui.nextPage );
172-
nextFooter.appendTo( ui.nextPage );
173-
this._off( ui.nextPage, "pageshow" );
174-
}
169+
ui.nextPage.one( "pageshow", function() {
170+
nextHeader.prependTo( this );
171+
nextFooter.appendTo( this );
175172
});
176173
}
177174
}

0 commit comments

Comments
 (0)