mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-05 05:04:46 +00:00
check the domCache option before rebinding the page remove when closing a full page select menu
This commit is contained in:
parent
9da8114fca
commit
e8f78dacb1
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue