From 4346563fe4312c414c3766a7542de960e0f14da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 19 Jan 2013 22:01:26 -0800 Subject: [PATCH] No need to merge Path#_serializeFields, simply keep in sync with Item#_serializeFields (excluding #children). --- src/path/Path.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/path/Path.js b/src/path/Path.js index 2949817a..cf62df84 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -24,10 +24,12 @@ // DOCS: Explain that path matrix is always applied with each transformation. var Path = this.Path = PathItem.extend(/** @lends Path# */{ _type: 'path', - _serializeFields: Base.merge(Item.prototype._serializeFields, { + _serializeFields: { + name: null, segments: [], - closed: false - }), + closed: false, + matrix: new Matrix() + }, /** * Creates a new Path item and places it at the top of the active layer.