aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets.js')
-rw-r--r--src/widgets.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/widgets.js b/src/widgets.js
index 1ab8a2c9..4585629a 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -635,12 +635,7 @@ angularWidget('ng:include', function(element){
if (src) {
xhr('GET', src, function(code, response){
element.html(response);
- if (useScope) {
- childScope = useScope;
- } else {
- childScope = createScope(scope);
- scope.$onEval(childScope.$eval);
- }
+ childScope = useScope || createScope(scope);
compiler.compile(element)(element, childScope);
childScope.$init();
scope.$eval(onloadExp);