ajaxDomCaching -> domCache

This commit is contained in:
John Bender 2011-07-28 12:53:27 -07:00
parent ded500f3b4
commit 27b4ba1691
3 changed files with 5 additions and 5 deletions

View file

@ -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 ){

View file

@ -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();
});

View file

@ -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 );
}
});