Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
check the domCache option before rebinding the page remove when closi…
Browse files Browse the repository at this point in the history
…ng a full page select menu
  • Loading branch information
SamuelKC committed Aug 16, 2011
1 parent 9da8114 commit e8f78da
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/jquery.mobile.forms.select.custom.js
Expand Up @@ -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
Expand Down

0 comments on commit e8f78da

Please sign in to comment.