From 98adc9e0383dc05efad168f30a0725cb67f5eda8 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 6 Nov 2013 15:00:46 -0800 Subject: fix($animate): don't force animations to be enabled The way that enabling of animations was set up, made it impossible to inject a module into the bootstrap to disable animations for things like end 2 end tests. Now animations are temporarily blocked by setting the animation state to RUNNING during bootstrap, which allows the developer to permanently disable at any point by calling $animate.enabled(false). --- src/Angular.js | 1 - 1 file changed, 1 deletion(-) (limited to 'src/Angular.js') diff --git a/src/Angular.js b/src/Angular.js index 93fccd04..797e4b81 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -1207,7 +1207,6 @@ function bootstrap(element, modules) { element.data('$injector', injector); compile(element)(scope); }); - animate.enabled(true); }] ); return injector; -- cgit v1.2.3