From cd38e662401481c168c9205cb97e093d92893b49 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 13 Jun 2012 09:11:58 +0200 Subject: [PATCH] typo in Ox.isEqual --- source/Ox/js/Type.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox/js/Type.js b/source/Ox/js/Type.js index ce8a18d8..dcbc2b10 100644 --- a/source/Ox/js/Type.js +++ b/source/Ox/js/Type.js @@ -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;