From 5b35e32e822d53482f87771800aa7ef5ba0fc370 Mon Sep 17 00:00:00 2001 From: nurbs999 Date: Fri, 9 Jun 2017 09:56:22 +0200 Subject: [PATCH] Do not enforce action as string (#3992) * Do not --- src/shapes/object.class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shapes/object.class.js b/src/shapes/object.class.js index 0d2c3957..58bb8fea 100644 --- a/src/shapes/object.class.js +++ b/src/shapes/object.class.js @@ -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; } }