No need to merge Path#_serializeFields, simply keep in sync with Item#_serializeFields (excluding #children).

This commit is contained in:
Jürg Lehni 2013-01-19 22:01:26 -08:00
parent b05a21d6c9
commit 4346563fe4

View file

@ -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.