mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Support null arguments in Point#equals().
This commit is contained in:
parent
3db6e103c2
commit
a7750c3e67
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue