Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Popup: Do not unenhance upon _destroy() if the "enhanced" option is o…
Browse files Browse the repository at this point in the history
…n, but do still close the popup. Fixes #6160.
  • Loading branch information
Gabriel Schulhof committed Jul 19, 2013
1 parent ec3eece commit f33375f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/widgets/popup.js
Expand Up @@ -723,6 +723,10 @@ $.widget( "mobile.popup", {
},

_unenhance: function() {
if ( this.options.enhanced ) {
return;
}

// Put the element back to where the placeholder was and remove the "ui-popup" class
this._setOptions( { theme: $.mobile.popup.prototype.options.theme } );
this.element
Expand Down

0 comments on commit f33375f

Please sign in to comment.