From d85814b1e6cad3e1d84b33ec22b71e264f8f10ee Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 5 Aug 2014 11:31:06 -0500 Subject: [PATCH] update to use $timeout w/ invokeApply=false --- js/angular/service/backdrop.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } }