From dae413f7452fb7dff024be12e0270063f8ab6479 Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Wed, 12 Aug 2015 07:09:05 +0200 Subject: [PATCH] Update itext.class.js --- src/shapes/itext.class.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shapes/itext.class.js b/src/shapes/itext.class.js index f1deb529..e2b36478 100644 --- a/src/shapes/itext.class.js +++ b/src/shapes/itext.class.js @@ -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 }); } });