From 0df7329a6a15947503f891fdfa933770a70559df Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 16 Aug 2010 16:47:39 -0700 Subject: fix for ng:include does not remove partial if src goes to undefined --- src/widgets.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/widgets.js') 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(''); } }); }; -- cgit v1.2.3