Remove push on shared array (#4478)

follow up for #4465
This commit is contained in:
Jérôme Steunou 2017-11-20 13:16:18 +01:00 committed by Andrea Bogazzi
parent 9028ccf909
commit 91de6d078d

View file

@ -13,12 +13,6 @@
return;
}
var stateProperties = fabric.Object.prototype.stateProperties.concat();
stateProperties.push(
'cropX',
'cropY'
);
/**
* Image class
* @class fabric.Image
@ -95,7 +89,7 @@
* as well as for history (undo/redo) purposes
* @type Array
*/
stateProperties: stateProperties,
stateProperties: fabric.Object.prototype.stateProperties.concat('cropX', 'cropY'),
/**
* When `true`, object is cached on an additional canvas.