aboutsummaryrefslogtreecommitdiffstats
path: root/src/Injector.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Injector.js')
-rw-r--r--src/Injector.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Injector.js b/src/Injector.js
index f5e35d0f..c1b9e69c 100644
--- a/src/Injector.js
+++ b/src/Injector.js
@@ -433,7 +433,7 @@ function createInjector(modulesToLoad) {
var Constructor = function() {},
instance, returnedValue;
- Constructor.prototype = Type.prototype;
+ Constructor.prototype = (isArray(Type) ? Type[Type.length - 1] : Type).prototype;
instance = new Constructor();
returnedValue = invoke(Type, instance, locals);