aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jqLite.js8
-rw-r--r--src/widgets.js5
2 files changed, 8 insertions, 5 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index 18589630..134c1e17 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -211,11 +211,9 @@ JQLite.prototype = {
html: function(value) {
if (isDefined(value)) {
- var parent = this[0], child;
- while(parent.childNodes.length) {
- child = parent.childNodes[0];
- jqLite(child).dealoc();
- parent.removeChild(child);
+ var i = 0, childNodes = this[0].childNodes;
+ for ( ; i < childNodes.length; i++) {
+ jqLite(childNodes[i]).dealoc();
}
this[0].innerHTML = value;
}
diff --git a/src/widgets.js b/src/widgets.js
index 209b24b7..8a816934 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -239,6 +239,11 @@ var ngSwitch = angularWidget('NG:SWITCH', function (element){
}
});
+ // this needs to be here for IE
+ foreach(cases, function(_case){
+ _case.element.remove();
+ });
+
element.html('');
return function(element){
var scope = this, childScope;