summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2017-01-03 12:51:26 -0700
committermo khan <mo@mokhan.ca>2017-01-03 12:51:26 -0700
commit240fa550476ebc6bfdd141d77500c200cb237ac2 (patch)
treec90945f31fdb51b2c926b472c4f97b98bbd0e69c
parent55aeb0b6680f35f716f7b8908a60c548293adec4 (diff)
simplify constructor check.
-rw-r--r--app/infrastructure/registry.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/infrastructure/registry.js b/app/infrastructure/registry.js
index 6d94fcf..13b92de 100644
--- a/app/infrastructure/registry.js
+++ b/app/infrastructure/registry.js
@@ -19,7 +19,8 @@ export class Resolver {
}
isConstructor() {
- return this.parseConstructor(this.factory)[1] != '';
+ return this.factory.name;
+ //return this.parseConstructor(this.factory)[1] != '';
}
resolveDependenciesUsing(container) {