Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 048a5f1

Browse files
vaibhavkhlIgorMinar
authored andcommitted
style($injector): added whitespace
1 parent 666a383 commit 048a5f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/auto/injector.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* // use the injector to kick off your application
2525
* // use the type inference to auto inject arguments, or use implicit injection
26-
* $injector.invoke(function($rootScope, $compile, $document){
26+
* $injector.invoke(function($rootScope, $compile, $document) {
2727
* $compile($document)($rootScope);
2828
* $rootScope.$digest();
2929
* });
@@ -97,8 +97,8 @@ function annotate(fn, strictDi, name) {
9797
}
9898
fnText = fn.toString().replace(STRIP_COMMENTS, '');
9999
argDecl = fnText.match(FN_ARGS);
100-
forEach(argDecl[1].split(FN_ARG_SPLIT), function(arg){
101-
arg.replace(FN_ARG, function(all, underscore, name){
100+
forEach(argDecl[1].split(FN_ARG_SPLIT), function(arg) {
101+
arg.replace(FN_ARG, function(all, underscore, name) {
102102
$inject.push(name);
103103
});
104104
});
@@ -133,7 +133,7 @@ function annotate(fn, strictDi, name) {
133133
* ```js
134134
* var $injector = angular.injector();
135135
* expect($injector.get('$injector')).toBe($injector);
136-
* expect($injector.invoke(function($injector){
136+
* expect($injector.invoke(function($injector) {
137137
* return $injector;
138138
* }).toBe($injector);
139139
* ```
@@ -769,7 +769,7 @@ function createInjector(modulesToLoad, strictDi) {
769769
}
770770
}
771771

772-
function invoke(fn, self, locals, serviceName){
772+
function invoke(fn, self, locals, serviceName) {
773773
if (typeof locals === 'string') {
774774
serviceName = locals;
775775
locals = null;

0 commit comments

Comments
 (0)