Skip to content
This repository
Browse code

parent is actually what we're looking for here, given that getInherit…

…edTheme mimics the closest() method. Fixes #3779
  • Loading branch information...
commit 054b9a47f9f6e147e76ec8f9c221092078b2f638 1 parent a53614d
authored March 10, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  js/jquery.mobile.page.js
2  js/jquery.mobile.page.js
@@ -35,7 +35,7 @@ $.widget( "mobile.page", $.mobile.widget, {
35 35
 	},
36 36
 	
37 37
 	removeContainerBackground: function(){
38  
-		$.mobile.pageContainer.removeClass( "ui-overlay-" + $.mobile.getInheritedTheme( this.element ) );
  38
+		$.mobile.pageContainer.removeClass( "ui-overlay-" + $.mobile.getInheritedTheme( this.element.parent() ) );
39 39
 	},
40 40
 	
41 41
 	// set the page container background to the page theme

0 notes on commit 054b9a4

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