aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/animator.js
diff options
context:
space:
mode:
authorMisko Hevery2013-04-16 09:53:35 -0700
committerMisko Hevery2013-04-22 23:13:26 -0700
commit021bdf3922b6525bd117e59fb4945b30a5a55341 (patch)
tree6de1d0c95cbf433012eb32f39d03ec2da2e0c09e /src/ng/animator.js
parentde296f1b52cdf4a50b2095cc4657adb49f75f333 (diff)
downloadangular.js-021bdf3922b6525bd117e59fb4945b30a5a55341.tar.bz2
fix($animator): remove dependency on window.setTimeout.
Diffstat (limited to 'src/ng/animator.js')
-rw-r--r--src/ng/animator.js8
1 files changed, 0 insertions, 8 deletions
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