Browse Source

Make integer property more extendable. Closes #2360

pull/2385/head
Artur Arseniev 7 years ago
parent
commit
2828da83ec
  1. 4
      src/style_manager/model/PropertyInteger.js

4
src/style_manager/model/PropertyInteger.js

@ -21,7 +21,8 @@ export default Property.extend({
max: '' max: ''
}, },
init() { initialize(props = {}, opts = {}) {
Property.callParentInit(Property, this, props, opts);
const unit = this.get('unit'); const unit = this.get('unit');
const units = this.get('units'); const units = this.get('units');
this.input = new InputNumber({ model: this }); this.input = new InputNumber({ model: this });
@ -29,6 +30,7 @@ export default Property.extend({
if (units.length && !unit) { if (units.length && !unit) {
this.set('unit', units[0]); this.set('unit', units[0]);
} }
Property.callInit(this, props, opts);
}, },
clearValue(opts = {}) { clearValue(opts = {}) {

Loading…
Cancel
Save