From bfcefe745e77fd16199864c04fb5d6a88f9f6ccc Mon Sep 17 00:00:00 2001 From: David Luecke Date: Mon, 16 Jun 2014 13:49:43 -0600 Subject: [PATCH] Fixing tests for IE 8. --- component/component_test.js | 2 +- list/list.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/component/component_test.js b/component/component_test.js index e4d4f3d0e2a..7cb68953c48 100644 --- a/component/component_test.js +++ b/component/component_test.js @@ -1280,7 +1280,7 @@ steal("can/component", "can/view/stache", function () { equal(frag.childNodes[0].innerHTML, '', 'child component is not inserted'); can.scope(frag.childNodes[0]).attr('shown', true); - equal(frag.childNodes[0].innerHTML, 'Hello world.', 'child component is inserted'); + equal(frag.childNodes[0].childNodes[0].innerHTML, 'Hello world.', 'child component is inserted'); can.scope(frag.childNodes[0]).attr('shown', false); equal(frag.childNodes[0].innerHTML, '', 'child component is removed'); diff --git a/list/list.js b/list/list.js index ddf07222b90..57dff067fdf 100644 --- a/list/list.js +++ b/list/list.js @@ -286,7 +286,7 @@ steal("can/util", "can/map", "can/map/bubble.js",function (can, Map, bubble) { // remove any items that were just added from the removed array if(added.length && removed.length){ for (j = 0; j < removed.length; j++) { - if(added.indexOf(removed[j]) !== -1) { + if(can.inArray(added, removed[j]) !== -1) { cleanRemoved.splice(j, 1); } }