mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-18 07:50:52 +08:00
refactor(bootstrap): remove an unused argument
The $animate service is injected, but not used within the code anymore. Closes #7649
This commit is contained in:
committed by
Matias Niemelä
parent
222d47370e
commit
f165e08b16
@@ -1425,8 +1425,8 @@ function bootstrap(element, modules, config) {
|
||||
}]);
|
||||
modules.unshift('ng');
|
||||
var injector = createInjector(modules, config.strictDi);
|
||||
injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector', '$animate',
|
||||
function(scope, element, compile, injector, animate) {
|
||||
injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector',
|
||||
function(scope, element, compile, injector) {
|
||||
scope.$apply(function() {
|
||||
element.data('$injector', injector);
|
||||
compile(element)(scope);
|
||||
|
||||
Reference in New Issue
Block a user