From 13e52cdca7cf3cdf674a3aee2b490ed7ad187b09 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sun, 2 Oct 2011 15:37:25 +0000 Subject: [PATCH] change isEqual so that functions are never equal (otherwise this breaks setting widget options that are functions) --- source/Ox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.js b/source/Ox.js index cf9908a3..15e144d6 100644 --- a/source/Ox.js +++ b/source/Ox.js @@ -5038,7 +5038,7 @@ Ox.isEqual = function(a, b) { isEqual = a.isEqualNode(b); } else if (type == 'function') { // fixme: this doesn't do it - isEqual = a.toString() == b.toString(); + // isEqual = a.toString() == b.toString(); } else if (type == 'regexp') { isEqual = a.global == b.global && a.ignore == b.ignore && a.multiline == b.multiline && a.source == b.source;