From 021bdf3922b6525bd117e59fb4945b30a5a55341 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 16 Apr 2013 09:53:35 -0700 Subject: fix($animator): remove dependency on window.setTimeout. --- src/ng/animator.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/ng') diff --git a/src/ng/animator.js b/src/ng/animator.js index 7f0f7b7a..d28ce158 100644 --- a/src/ng/animator.js +++ b/src/ng/animator.js @@ -130,14 +130,6 @@ var $AnimatorProvider = function() { this.$get = ['$animation', '$window', '$sniffer', '$rootElement', '$rootScope', function($animation, $window, $sniffer, $rootElement, $rootScope) { $rootElement.data(NG_ANIMATE_CONTROLLER, rootAnimateController); - var unregister = $rootScope.$watch(function() { - unregister(); - if (rootAnimateController.running) { - $window.setTimeout(function() { - rootAnimateController.running = false; - }, 0); - } - }); /** * @ngdoc function -- cgit v1.2.3