From 44496d343e1d4616db85dc83bc4b6f31c1cbc331 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 24 May 2011 20:44:55 +0200 Subject: [PATCH] fixing Ox.isEqual --- source/Ox.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/Ox.js b/source/Ox.js index a24cac17..a7371ca4 100644 --- a/source/Ox.js +++ b/source/Ox.js @@ -4388,8 +4388,10 @@ Ox.isEqual = function(a, b) { isEqual = true; } else if (type == 'date') { isEqual = a.getTime() == b.getTime(); + /* toString doesn't do it } else if (['element', 'function'].indexOf(type) > -1) { isEqual = a.toString() == b.toString(); + */ } else if (type == 'regexp') { isEqual = a.global == b.global && a.ignore == b.ignore &&