change isEqual so that functions are never equal (otherwise this breaks setting widget options that are functions)

This commit is contained in:
rlx 2011-10-02 15:37:25 +00:00
parent 67e4fe30a2
commit 13e52cdca7

View file

@ -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;