Do not enforce action as string (#3992)

* Do not
This commit is contained in:
nurbs999 2017-06-09 09:56:22 +02:00 committed by Andrea Bogazzi
parent 7cb2e647a9
commit 3987c962dd

View file

@ -875,7 +875,7 @@
_updateCacheCanvas: function() {
if (this.noScaleCache && this.canvas && this.canvas._currentTransform) {
var action = this.canvas._currentTransform.action;
if (action.slice(0, 5) === 'scale') {
if (action.slice && action.slice(0, 5) === 'scale') {
return false;
}
}