Skip to content

Commit

Permalink
Do not enforce action as string (#3992)
Browse files Browse the repository at this point in the history
* Do not
  • Loading branch information
nurbson authored and asturur committed Jun 9, 2017
1 parent 8e25a71 commit 5b35e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shapes/object.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 5b35e32

Please sign in to comment.