diff options
| author | Igor Minar | 2011-01-19 00:10:39 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-01-19 15:52:27 -0800 |
| commit | a5eb3ed107034cce5b7de3ec3f8a43ff3a379fa1 (patch) | |
| tree | 791c8ac9c0f235dd6afe71f951518b9bf41f8bcd /src/widgets.js | |
| parent | 63690d189214135f22171ad8795ccfe15103a8e6 (diff) | |
| download | angular.js-a5eb3ed107034cce5b7de3ec3f8a43ff3a379fa1.tar.bz2 | |
$route should create child scope via $new
Diffstat (limited to 'src/widgets.js')
| -rw-r--r-- | src/widgets.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/widgets.js b/src/widgets.js index c1cb0c7b..3b0ffab7 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -625,20 +625,9 @@ angularWidget('ng:include', function(element){ return extend(function(xhr, element){ var scope = this, childScope; var changeCounter = 0; - var preventRecursion = false; function incrementChange(){ changeCounter++;} this.$watch(srcExp, incrementChange); this.$watch(scopeExp, incrementChange); - scope.$onEval(function(){ - if (childScope && !preventRecursion) { - preventRecursion = true; - try { - childScope.$eval(); - } finally { - preventRecursion = false; - } - } - }); this.$watch(function(){return changeCounter;}, function(){ var src = this.$eval(srcExp), useScope = this.$eval(scopeExp); |
