diff options
| -rw-r--r-- | src/jqLite.js | 8 | ||||
| -rw-r--r-- | src/widgets.js | 5 | ||||
| -rwxr-xr-x | test.sh | 2 | 
3 files changed, 9 insertions, 6 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; @@ -1,2 +1,2 @@  # java -jar lib/jstestdriver/JsTestDriver.jar --tests all -java -jar lib/jstestdriver/JsTestDriver.jar --tests all --config jsTestDriver-jquery.conf +java -jar lib/jstestdriver/JsTestDriver.jar --tests 'widget ng:switch' --config jsTestDriver-jquery.conf | 
