Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update

  • Loading branch information...
commit f635c1f78f0d4873eb396e0e695adec2be289842 1 parent cd9f3ef
Jason Giedymin authored March 11, 2013

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  main.js
3  main.js
@@ -27,7 +27,7 @@ Object.prototype.equals = function(x, tree){
27 27
                 if (typeof(x[p]) != 'undefined') compInfo(p+" as Undefined", this[p], x[p]);
28 28
                 break;
29 29
             case 'object':
30  
-                if(this[p]!==null && x[p]!==null &&
  30
+                if(this[p]!==null && (x[p]!==null || x[p]!==undefined) && (x[p].constructor !== undefined) &&
31 31
                     (this[p].constructor.toString() !== x[p].constructor.toString() ||
32 32
                         !this[p].equals(x[p], prev))) {
33 33
                     compInfo(p+" as Obj", this[p], x[p]);
@@ -47,3 +47,4 @@ Object.prototype.equals = function(x, tree){
47 47
 console.log('Started');
48 48
 
49 49
 one.equals(two);
  50
+//two.equals(one);

0 notes on commit f635c1f

Please sign in to comment.
Something went wrong with that request. Please try again.