Access the _wrapped property directly instead of calling value() when unwrapping wrapped objects in isEqual()

This commit is contained in:
Ryan W Tenney
2010-12-03 14:34:25 -05:00
parent e63f44f798
commit ebe0cc6f45

View File

@@ -529,8 +529,8 @@
// One is falsy and the other truthy.
if ((!a && b) || (a && !b)) return false;
// Unwrap any wrapped objects.
if (a._chain) a = a.value();
if (b._chain) b = b.value();
if (a._chain) a = a._wrapped;
if (b._chain) b = b._wrapped;
// One of them implements an isEqual()?
if (a.isEqual) return a.isEqual(b);
// Check dates' integer values.