typo in Ox.isEqual

This commit is contained in:
rolux 2012-06-13 09:11:58 +02:00
parent 110be11a05
commit cd38e66240

View file

@ -137,7 +137,7 @@ Ox.isEqual = function(a, b) {
ret = a !== 0 || 1 / a === 1 / b;
} else if (type == Ox.typeOf(b)) {
// NaN !== NaN, but equal
if (a == b || a !== b) {
if (a == b || a !== a) {
ret = true;
} else if (type == 'date') {
ret = +a == +b;