Commit 240fa55

mo khan <mo@mokhan.ca>
2017-01-03 19:51:26
simplify constructor check.
1 parent 55aeb0b
Changed files (1)
app
infrastructure
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) {