From 1035aa385bacb093917c7be0b288bd53f4de2b11 Mon Sep 17 00:00:00 2001 From: David Luecke Date: Mon, 16 Jun 2014 14:24:09 -0600 Subject: [PATCH] Fixing can.inArray call. --- list/list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list/list.js b/list/list.js index 57dff067fdf..acc5b0a19b4 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(can.inArray(added, removed[j]) !== -1) { + if(can.inArray(removed[j], added) >= 0) { cleanRemoved.splice(j, 1); } }