Add "rx", "ry" to the stateProperties of fabric.Rect. Fixes issue #16.

This commit is contained in:
kangax 2011-03-01 19:06:27 -05:00
parent 77ed374671
commit 03561f762f

View file

@ -39,10 +39,21 @@
* @return {Object} thisArg
*/
initialize: function(options) {
this._initStateProperties();
this.callSuper('initialize', options);
this._initRxRy();
},
/**
* Creates `stateProperties` list on an instance, and adds `fabric.Rect` -specific ones to it
* (such as "rx", "ry", etc.)
* @private
* @method _initStateProperties
*/
_initStateProperties: function() {
this.stateProperties = this.stateProperties.concat(['rx', 'ry']);
},
/**
* @private
* @method _initRxRy