change isEqual so that functions are never equal (otherwise this breaks setting widget options that are functions)
This commit is contained in:
parent
67e4fe30a2
commit
13e52cdca7
1 changed files with 1 additions and 1 deletions
|
@ -5038,7 +5038,7 @@ Ox.isEqual = function(a, b) {
|
||||||
isEqual = a.isEqualNode(b);
|
isEqual = a.isEqualNode(b);
|
||||||
} else if (type == 'function') {
|
} else if (type == 'function') {
|
||||||
// fixme: this doesn't do it
|
// fixme: this doesn't do it
|
||||||
isEqual = a.toString() == b.toString();
|
// isEqual = a.toString() == b.toString();
|
||||||
} else if (type == 'regexp') {
|
} else if (type == 'regexp') {
|
||||||
isEqual = a.global == b.global && a.ignore == b.ignore
|
isEqual = a.global == b.global && a.ignore == b.ignore
|
||||||
&& a.multiline == b.multiline && a.source == b.source;
|
&& a.multiline == b.multiline && a.source == b.source;
|
||||||
|
|
Loading…
Reference in a new issue