Permalink
Browse files

Fixed closing the dialog, when the page is removed.

  • Loading branch information...
1 parent d3a1acd commit 9c088cd5baee326ea442100836dbb9486cb1b736 @MichelHartmann MichelHartmann committed Aug 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.forms.select.custom.js
View
2 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 9c088cd

Please sign in to comment.