Support null arguments in Point#equals().

This commit is contained in:
Jürg Lehni 2013-06-11 20:14:45 -07:00
parent 3db6e103c2
commit a7750c3e67

View file

@ -199,7 +199,7 @@ var Point = Base.extend(/** @lends Point# */{
*/
equals: function(point) {
point = Point.read(arguments, 0, 0, true); // readNull
return this.x == point.x && this.y == point.y;
return point ? this.x == point.x && this.y == point.y : false;
},
/**