@@ -121,33 +121,16 @@ $.widget( "mobile.page", {
121121 _handlePageBeforeShow : function ( /* e */ ) {
122122 this . setContainerBackground ( ) ;
123123 } ,
124-
124+ // Deprecated in 1.4 remove in 1.5
125125 removeContainerBackground : function ( ) {
126- var classes = ( $ . mobile . pageContainer . attr ( "class" ) || "" ) . split ( " " ) ,
127- overlayTheme = null ,
128- matches ;
129-
130- while ( classes . length > 0 ) {
131- overlayTheme = classes . pop ( ) ;
132- matches = ( new RegExp ( "^ui-overlay-([a-z])$" ) ) . exec ( overlayTheme ) ;
133- if ( matches && matches . length > 1 ) {
134- overlayTheme = matches [ 1 ] ;
135- break ;
136- } else {
137- overlayTheme = null ;
138- }
139- }
140-
141- $ . mobile . pageContainer . removeClass ( "ui-overlay-" + overlayTheme ) ;
126+ this . element . closest ( ":mobile-content" ) . content ( { "theme" : "none" } ) ;
142127 } ,
143-
128+ // Deprecated in 1.4 remove in 1.5
144129 // set the page container background to the page theme
145130 setContainerBackground : function ( theme ) {
146- if ( this . options . theme ) {
147- $ . mobile . pageContainer . addClass ( "ui-overlay-" + ( theme || this . options . theme ) ) ;
148- }
131+ this . element . parent ( ) . content ( { "theme" : theme || this . options . theme } ) ;
149132 } ,
150-
133+ // Deprecated in 1.4 remove in 1.5
151134 keepNativeSelector : function ( ) {
152135 var options = this . options ,
153136 keepNativeDefined = options . keepNative && $ . trim ( options . keepNative ) ;
0 commit comments