diff options
| -rw-r--r-- | src/Scope.js | 5 | ||||
| -rw-r--r-- | src/services.js | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/Scope.js b/src/Scope.js index 53228a0d..3aaff361 100644 --- a/src/Scope.js +++ b/src/Scope.js @@ -233,6 +233,11 @@ function createScope(parent, services, existing) { behavior[name] = bind(instance, fn); }); (Class || noop).call(instance); + + //TODO: backwards compatibility hack, remove when Feedback's init methods are removed + if (behavior.hasOwnProperty('init')) { + behavior.init(); + } } }); diff --git a/src/services.js b/src/services.js index 9bf3d1ed..41755962 100644 --- a/src/services.js +++ b/src/services.js @@ -253,7 +253,6 @@ angularService('$route', function(location){ angular.foreach(onChange, parentScope.$tryEval); if (childScope) { childScope.$become($route.current.controller); - parentScope.$tryEval(childScope.init); } } this.$watch(function(){return dirty + location.hash;}, updateRoute); |
