Permalink
Browse files

Fix issue #89 (caused by ko.utils.arrayIndexOf doing loose comparisons)

  • Loading branch information...
SteveSanderson committed May 3, 2011
1 parent eff4df8 commit 700f6a920d557011acab5e261be8b457d0554029
Showing with 3 additions and 3 deletions.
  1. +1 −1 build/output/knockout-latest.debug.js
  2. +1 −1 build/output/knockout-latest.js
  3. +1 −1 src/utils.js
@@ -40,7 +40,7 @@ ko.utils = new (function () {
if (typeof array.indexOf == "function")
return array.indexOf(item);
for (var i = 0, j = array.length; i < j; i++)
- if (array[i] == item)
+ if (array[i] === item)
return i;
return -1;
},

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -24,7 +24,7 @@ ko.utils = new (function () {
if (typeof array.indexOf == "function")
return array.indexOf(item);
for (var i = 0, j = array.length; i < j; i++)
- if (array[i] == item)
+ if (array[i] === item)
return i;
return -1;
},

0 comments on commit 700f6a9

Please sign in to comment.