fixing Ox.isEqual

This commit is contained in:
rolux 2011-05-24 20:44:55 +02:00
parent c31ff816c1
commit 44496d343e

View file

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