Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit e07b391

Browse files
Merge pull request #468 from telerik/vladimirov/fix-annotate-of-base
Fix resolving of child when parent is registered
2 parents bee77ac + 5bdc90c commit e07b391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yok.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function annotate(fn: any) {
3636
argDecl: string[];
3737

3838
if(typeof fn === "function") {
39-
if(!($inject = fn.$inject)) {
39+
if(!($inject = fn.$inject) || $inject.name !== fn.name) {
4040
$inject = { args: [], name: "" };
4141
fnText = fn.toString().replace(STRIP_COMMENTS, '');
4242
argDecl = fnText.match(FN_NAME_AND_ARGS);

0 commit comments

Comments
 (0)