Skip to content
This repository
Browse code

check the data role to see if it's a header or footer, not the class …

…from the page sections plugin. This allows for a looser order of calling the page sections and fixedtoolbar plugins on an element, which is a small improvement, and fixes #3875 in the process.
  • Loading branch information...
commit 94c0aeb5416b841f321a4fa063170e3628fc8a69 1 parent 203e00b
authored April 03, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  js/jquery.mobile.fixedToolbar.js
4  js/jquery.mobile.fixedToolbar.js
@@ -72,7 +72,7 @@ define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.core", "./jquery.
72 72
 			var self = this,
73 73
 				o = self.options,
74 74
 				$el = self.element,
75  
-				tbtype = $el.is( ".ui-header" ) ? "header" : "footer",
  75
+				tbtype = $el.is( ":jqmData(role='header')" ) ? "header" : "footer",
76 76
 				$page = $el.closest(".ui-page");
77 77
 
78 78
 			// Feature detecting support for
@@ -189,7 +189,7 @@ define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.core", "./jquery.
189 189
 				elHeight = $el.height(),
190 190
 				pHeight = $el.closest( ".ui-page" ).height(),
191 191
 				viewportHeight = $.mobile.getScreenHeight(),
192  
-				tbtype = $el.is( ".ui-header" ) ? "header" : "footer";
  192
+				tbtype = $el.is( ":jqmData(role='header')" ) ? "header" : "footer";
193 193
 				
194 194
 			return !notransition &&
195 195
 				( this.options.transition && this.options.transition !== "none" &&

0 notes on commit 94c0aeb

Please sign in to comment.
Something went wrong with that request. Please try again.