Skip to content

Commit

Permalink
remove body.popup-open w/ timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Bradley committed Mar 21, 2014
1 parent be34825 commit 5afcc8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/ext/angular/src/service/ionicPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ angular.module('ionic.service.popup', ['ionic.service.templateLoad'])
// Remove the backdrop element
var removeBackdrop = function() {
backdropEl.remove();
$document[0].body.classList.remove('popup-open');
$timeout(function(){
$document[0].body.classList.remove('popup-open');
}, 300);
};

// Push the new popup onto the stack with the given data and scope.
Expand Down

0 comments on commit 5afcc8a

Please sign in to comment.