From 9c088cd5baee326ea442100836dbb9486cb1b736 Mon Sep 17 00:00:00 2001 From: Michel Hartmann Date: Sat, 20 Aug 2011 06:31:20 +0300 Subject: [PATCH] Fixed closing the dialog, when the page is removed. --- js/jquery.mobile.forms.select.custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.forms.select.custom.js b/js/jquery.mobile.forms.select.custom.js index 3ec6882b..b319b588 100644 --- a/js/jquery.mobile.forms.select.custom.js +++ b/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(); }); }