Update itext.class.js

This commit is contained in:
Andrea Bogazzi 2015-08-12 07:09:05 +02:00
parent 5966b5e319
commit dae413f745

View file

@ -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
});
}
});