aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets.js
diff options
context:
space:
mode:
authorIgor Minar2010-08-16 16:47:39 -0700
committerIgor Minar2010-08-16 16:47:39 -0700
commit0df7329a6a15947503f891fdfa933770a70559df (patch)
treedbe6f3abd2d3dc054b4c225099208cd8d566fc6c /src/widgets.js
parent59401b80ee36d56f7ede551669633abbc6dd1e24 (diff)
downloadangular.js-0df7329a6a15947503f891fdfa933770a70559df.tar.bz2
fix for ng:include does not remove partial if src goes to undefined
Diffstat (limited to 'src/widgets.js')
-rw-r--r--src/widgets.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets.js b/src/widgets.js
index 87a302fa..a3874a51 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -260,6 +260,8 @@ angularWidget('ng:include', function(element){
compiler.compile(element)(element, childScope);
childScope.$init();
});
+ } else {
+ element.html('');
}
});
};