remove body.popup-open w/ timeout

This commit is contained in:
Adam Bradley
2014-03-21 15:49:02 -05:00
parent be34825843
commit 5afcc8a3bd

View File

@@ -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.