Permalink
Browse files

Merge pull request #2312 from MichelHartmann/patch-1

Fixed closing the dialog, when the page is removed.
  • Loading branch information...
2 parents 9e54da1 + 35f29de commit c2af76f8f245f21178d85a70e85f16f4a28d4b04 @gseguin gseguin committed Aug 25, 2011
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 c2af76f

Please sign in to comment.