Skip to content
Browse files

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

…edTheme mimics the closest() method. Fixes #3779
  • Loading branch information...
1 parent a53614d commit 054b9a47f9f6e147e76ec8f9c221092078b2f638 scottjehl committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.page.js
View
2 js/jquery.mobile.page.js
@@ -35,7 +35,7 @@ $.widget( "mobile.page", $.mobile.widget, {
},
removeContainerBackground: function(){
- $.mobile.pageContainer.removeClass( "ui-overlay-" + $.mobile.getInheritedTheme( this.element ) );
+ $.mobile.pageContainer.removeClass( "ui-overlay-" + $.mobile.getInheritedTheme( this.element.parent() ) );
},
// set the page container background to the page theme

0 comments on commit 054b9a4

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