From 692333f2f5ce8330c3b8a5a88b027587436ac2ea Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 14 Oct 2010 12:36:29 -0700 Subject: temporary backwards compatibility patch for --- src/Scope.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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(); + } } }, -- cgit v1.2.3