diff --git a/js/angular/service/backdrop.js b/js/angular/service/backdrop.js index ea9e7b5da2..d99893dbfd 100644 --- a/js/angular/service/backdrop.js +++ b/js/angular/service/backdrop.js @@ -34,8 +34,8 @@ */ IonicModule .factory('$ionicBackdrop', [ - '$document', -function($document) { + '$document', '$timeout', +function($document, $timeout) { var el = jqLite('
'); var backdropHolds = 0; @@ -74,9 +74,9 @@ function($document) { function release() { if ( (--backdropHolds) === 0 ) { el.removeClass('active'); - setTimeout(function() { + $timeout(function() { !backdropHolds && el.removeClass('visible'); - }, 400); + }, 400, false); } }