Thanks to visit codestin.com
Credit goes to github.com

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

Commit 5c5a2e4

Browse files
committed
Add comments for added functions
1 parent 05c37c4 commit 5c5a2e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/auto/injector.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,10 +582,13 @@ function createInjector(modulesToLoad) {
582582
}
583583
}
584584

585+
// Is Given function annotated like
586+
// $injector.invoke(['serviceA', function(serviceA){}])
585587
function isInlineAnnotated(fn){
586588
return isArray(fn);
587589
}
588590

591+
// Get function of an annotated invoke description
589592
function getAnnotatedFunction(fn){
590593
if(isInlineAnnotated(fn)){
591594
return fn[fn.length - 1]

0 commit comments

Comments
 (0)