Permalink
Browse files

Popup: Use .done() instead of .then() for prerequisites

Fixes gh-8044
  • Loading branch information...
gabrielschulhof committed Mar 27, 2015
1 parent 5c067f7 commit d34c86ae14d4ea603357be5e326de1fb8c31dbf9
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/widgets/popup.js
View
@@ -515,13 +515,13 @@ $.widget( "mobile.popup", {
container: $.Deferred()
};
prerequisites.screen.then( function() {
prerequisites.screen.done( function() {
if ( prerequisites === self._prerequisites ) {
screenPrerequisite();
}
});
prerequisites.container.then( function() {
prerequisites.container.done( function() {
if ( prerequisites === self._prerequisites ) {
containerPrerequisite();
}

0 comments on commit d34c86a

Please sign in to comment.