aboutsummaryrefslogtreecommitdiffstats
path: root/src/Scope.js
diff options
context:
space:
mode:
authorIgor Minar2010-10-14 12:36:29 -0700
committerIgor Minar2010-10-14 12:36:29 -0700
commit692333f2f5ce8330c3b8a5a88b027587436ac2ea (patch)
tree9d5464ae78c58be799ee7278133e2ff92228e03a /src/Scope.js
parent03df6cbddbb80186caf571e29957370b2ef9881c (diff)
downloadangular.js-692333f2f5ce8330c3b8a5a88b027587436ac2ea.tar.bz2
temporary backwards compatibility patch for
Diffstat (limited to 'src/Scope.js')
-rw-r--r--src/Scope.js5
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();
+ }
}
},