Permalink
Browse files

Merge pull request #2312 from MichelHartmann/patch-1

Fixed closing the dialog, when the page is removed.
  • Loading branch information...
gseguin committed Aug 25, 2011
2 parents 00e56c1 + 9c088cd commit 884bfdee3b46b2775bac14c500f3c5da1923f556
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.forms.select.custom.js
@@ -250,7 +250,7 @@
// of a dialog sized custom select
if( !self.thisPage.data("page").options.domCache ){
self.thisPage.bind( "pagehide.remove", function() {
- $(this).remove();
+ $(self).remove();
});
}

0 comments on commit 884bfde

Please sign in to comment.