Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
parent is actually what we're looking for here, given that getInherit…
Browse files Browse the repository at this point in the history
…edTheme mimics the closest() method. Fixes #3779
  • Loading branch information
scottjehl committed Mar 9, 2012
1 parent a53614d commit 054b9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.mobile.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 054b9a4

Please sign in to comment.