Check for Path#closed in Path#equals()

This commit is contained in:
Jürg Lehni 2014-12-28 18:10:14 +01:00
parent 7bc6da5401
commit 1de750bc77

View file

@ -123,7 +123,8 @@ var Path = PathItem.extend(/** @lends Path# */{
},
_equals: function(item) {
return Base.equals(this._segments, item._segments);
return this._closed === item._closed
&& Base.equals(this._segments, item._segments);
},
clone: function(insert) {