diff options
| author | Misko Hevery | 2013-04-16 09:53:35 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2013-04-22 23:13:26 -0700 | 
| commit | 021bdf3922b6525bd117e59fb4945b30a5a55341 (patch) | |
| tree | 6de1d0c95cbf433012eb32f39d03ec2da2e0c09e /src/Angular.js | |
| parent | de296f1b52cdf4a50b2095cc4657adb49f75f333 (diff) | |
| download | angular.js-021bdf3922b6525bd117e59fb4945b30a5a55341.tar.bz2 | |
fix($animator): remove dependency on window.setTimeout.
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Angular.js b/src/Angular.js index a4ef8966..bf64c6c2 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -975,12 +975,13 @@ function bootstrap(element, modules) {      }]);      modules.unshift('ng');      var injector = createInjector(modules); -    injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector', -       function(scope, element, compile, injector) { +    injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector', '$animator', +       function(scope, element, compile, injector, animator) {          scope.$apply(function() {            element.data('$injector', injector);            compile(element)(scope);          }); +        animator.enabled(true);        }]      );      return injector;  | 
