check the domCache option before rebinding the page remove when closing a full page select menu

This commit is contained in:
Samuel Padou 2011-08-16 13:57:07 +02:00
parent 9da8114fca
commit e8f78dacb1

View file

@ -248,9 +248,11 @@
// rebind the page remove that was unbound in the open function
// to allow for the parent page removal from actions other than the use
// of a dialog sized custom select
self.thisPage.bind( "pagehide.remove", function() {
$(this).remove();
});
if( !self.thisPage.data("page").options.domCache ){
self.thisPage.bind( "pagehide.remove", function() {
$(this).remove();
});
}
// doesn't solve the possible issue with calling change page
// where the objects don't define data urls which prevents dialog key