Skip to content

Commit

Permalink
Fixing can.inArray call.
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Jun 16, 2014
1 parent 21b131d commit 1035aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion list/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 1035aa3

Please sign in to comment.