From 1de750bc77f6414499e4b683cc71e864922a0e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ju=CC=88rg=20Lehni?= Date: Sun, 28 Dec 2014 18:10:14 +0100 Subject: [PATCH] Check for Path#closed in Path#equals() --- src/path/Path.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/path/Path.js b/src/path/Path.js index f3c3767d..fcec3177 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -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) {