aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2010-10-05 10:50:16 -0700
committerIgor Minar2010-10-16 22:10:01 -0700
commit54090d776613f9e7bac6a77a037412b285222d58 (patch)
treefda0cd70e052a163519918dcc6362f4164e37588
parentb08e2be64c749da433d6c8a4e764f3c80c6f1e86 (diff)
downloadangular.js-54090d776613f9e7bac6a77a037412b285222d58.tar.bz2
ng:include should remove the reference to childScope when src is blank
-rw-r--r--src/widgets.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets.js b/src/widgets.js
index c9dfab99..83a784f1 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -273,6 +273,7 @@ angularWidget('ng:include', function(element){
childScope.$init();
});
} else {
+ childScope = null;
element.html('');
}
});