Fixed closing the dialog, when the page is removed. #2312

Merged
merged 1 commit into from Aug 25, 2011
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();
});
}