mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-09 14:24:44 +00:00
Update itext.class.js
This commit is contained in:
parent
5966b5e319
commit
dae413f745
1 changed files with 4 additions and 4 deletions
|
|
@ -1121,16 +1121,16 @@
|
|||
* @return {Object} object representation of an instance
|
||||
*/
|
||||
toObject: function(propertiesToInclude) {
|
||||
var newStyle = { }, i, j, row;
|
||||
var clonedStyles = { }, i, j, row;
|
||||
for (i in this.styles) {
|
||||
row = this.styles[i];
|
||||
newStyle[i] = { };
|
||||
clonedStyles[i] = { };
|
||||
for (j in row) {
|
||||
newStyle[i][j] = clone(row[j]);
|
||||
clonedStyles[i][j] = clone(row[j]);
|
||||
}
|
||||
}
|
||||
return fabric.util.object.extend(this.callSuper('toObject', propertiesToInclude), {
|
||||
styles: newStyle
|
||||
styles: clonedStyles
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue