Permalink
Browse files

Fixes #4887 - Prevents `0` from being appended to the document when u…

…sing a persistent footer with jQuery 1.8.0.
  • Loading branch information...
1 parent 7f312da commit 5a6b2c3acfc72de4d0ae773ed0e076ef37bac1a5 @Wilto Wilto committed Aug 29, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 js/widgets/fixedToolbar.js
@@ -149,10 +149,8 @@ define( [ "jquery", "../jquery.mobile.widget", "../jquery.mobile.core", "../jque
if ( o.trackPersistentToolbars ) {
var thisFooter = $( ".ui-footer-fixed:jqmData(id)", this ),
thisHeader = $( ".ui-header-fixed:jqmData(id)", this ),
- nextFooter = thisFooter.length && ui.nextPage && $( ".ui-footer-fixed:jqmData(id='" + thisFooter.jqmData( "id" ) + "')", ui.nextPage ),
- nextHeader = thisHeader.length && ui.nextPage && $( ".ui-header-fixed:jqmData(id='" + thisHeader.jqmData( "id" ) + "')", ui.nextPage );
-
- nextFooter = nextFooter || $();
+ nextFooter = thisFooter.length && ui.nextPage && $( ".ui-footer-fixed:jqmData(id='" + thisFooter.jqmData( "id" ) + "')", ui.nextPage ) || $(),
+ nextHeader = thisHeader.length && ui.nextPage && $( ".ui-header-fixed:jqmData(id='" + thisHeader.jqmData( "id" ) + "')", ui.nextPage ) || $();
if ( nextFooter.length || nextHeader.length ) {

0 comments on commit 5a6b2c3

Please sign in to comment.