diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Scope.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Scope.js b/src/Scope.js index ed608e95..5c15246b 100644 --- a/src/Scope.js +++ b/src/Scope.js @@ -227,6 +227,11 @@ function createScope(parent, providers, instanceCache) { instance[name] = bind(instance, fn); }); instance.$inject.apply(instance, concat([Class, instance], arguments, 1)); + + //TODO: backwards compatibility hack, remove when we don't depend on init methods + if (isFunction(Class.prototype.init)) { + instance.init(); + } } }, |
