Update itext.class.js

This commit is contained in:
Andrea Bogazzi 2015-03-21 12:17:34 +01:00
parent 63180f24a9
commit 84bd8bbda0

View file

@ -284,6 +284,8 @@
this._extendStyles(i, styles);
}
}
/* not included in _extendStyles to avoid clearing cache more than once */
this._clearCache();
return this;
},
@ -299,7 +301,6 @@
if (!this.styles[loc.lineIndex][loc.charIndex]) {
this.styles[loc.lineIndex][loc.charIndex] = { };
}
fabric.util.object.extend(this.styles[loc.lineIndex][loc.charIndex], styles);
},