mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-24 22:23:42 +00:00
ajaxDomCaching -> domCache
This commit is contained in:
parent
ded500f3b4
commit
27b4ba1691
3 changed files with 5 additions and 5 deletions
|
|
@ -259,7 +259,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
|
|||
}).listview();
|
||||
|
||||
//on pagehide, remove any nested pages along with the parent page, as long as they aren't active
|
||||
if( hasSubPages && parentPage.data("page").options.ajaxDomCaching === false ){
|
||||
if( hasSubPages && parentPage.data("page").options.domCache === false ){
|
||||
parentPage
|
||||
.unbind( "pagehide.remove" )
|
||||
.bind( "pagehide.remove", function( e, ui ){
|
||||
|
|
|
|||
|
|
@ -694,7 +694,7 @@
|
|||
.appendTo( settings.pageContainer );
|
||||
|
||||
// when dom caching is not enabled bind to remove the page on hide
|
||||
if( !page.jqmData("ajaxDomCaching") ){
|
||||
if( !page.jqmData("domCache") ){
|
||||
page.bind( "pagehide.remove", function(){
|
||||
$(this).remove();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
$.widget( "mobile.page", $.mobile.widget, {
|
||||
options: {
|
||||
theme: "c",
|
||||
ajaxDomCaching: false
|
||||
domCache: false
|
||||
},
|
||||
|
||||
_create: function() {
|
||||
|
|
@ -20,8 +20,8 @@ $.widget( "mobile.page", $.mobile.widget, {
|
|||
if ( this._trigger( "beforeCreate" ) === false ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$elem.addClass( "ui-page ui-body-" + o.theme );
|
||||
|
||||
$elem.addClass( "ui-page ui-body-" + o.theme );
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue