mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Include Item#transformContent in serialization and cloning.
This commit is contained in:
parent
7cf4591a1e
commit
dad7821ee9
1 changed files with 2 additions and 1 deletions
|
@ -61,6 +61,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
||||||
guide: false,
|
guide: false,
|
||||||
selected: false,
|
selected: false,
|
||||||
clipMask: false,
|
clipMask: false,
|
||||||
|
transformContent: null,
|
||||||
data: {}
|
data: {}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1463,7 +1464,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
||||||
// meaning the default value has been overwritten (default is on
|
// meaning the default value has been overwritten (default is on
|
||||||
// prototype).
|
// prototype).
|
||||||
var keys = ['_locked', '_visible', '_blendMode', '_opacity',
|
var keys = ['_locked', '_visible', '_blendMode', '_opacity',
|
||||||
'_clipMask', '_guide'];
|
'_clipMask', '_guide', '_transformContent'];
|
||||||
for (var i = 0, l = keys.length; i < l; i++) {
|
for (var i = 0, l = keys.length; i < l; i++) {
|
||||||
var key = keys[i];
|
var key = keys[i];
|
||||||
if (this.hasOwnProperty(key))
|
if (this.hasOwnProperty(key))
|
||||||
|
|
Loading…
Reference in a new issue