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 a576fea commit 337e9e0b18e8083d615c8dc372f6136f51a2d4e2 @Wilto Wilto committed with 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 337e9e0

Please sign in to comment.