diff options
| author | Igor Minar | 2010-10-14 12:36:29 -0700 | 
|---|---|---|
| committer | Igor Minar | 2010-10-14 12:36:29 -0700 | 
| commit | 692333f2f5ce8330c3b8a5a88b027587436ac2ea (patch) | |
| tree | 9d5464ae78c58be799ee7278133e2ff92228e03a /src | |
| parent | 03df6cbddbb80186caf571e29957370b2ef9881c (diff) | |
| download | angular.js-692333f2f5ce8330c3b8a5a88b027587436ac2ea.tar.bz2 | |
temporary backwards compatibility patch for
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(); +        }        }      },  | 
