diff --git a/src/ui/Component.js b/src/ui/Component.js index 575dfc67..ee2bc574 100644 --- a/src/ui/Component.js +++ b/src/ui/Component.js @@ -164,7 +164,7 @@ var Component = Base.extend(Callback, /** @lends Component# */{ // setLabel() requires this._labelCell). // Exclude name because it's already set, and value since we want to set // it after range. - Base.set(this, props, { name: true, value: true }); + this._set(props, { name: true, value: true }); this.setValue(value); // Start firing change events after we have initialized. this._dontFire = false; diff --git a/src/ui/Palette.js b/src/ui/Palette.js index e7814cbc..dac546d6 100644 --- a/src/ui/Palette.js +++ b/src/ui/Palette.js @@ -40,10 +40,8 @@ this._element = parent.appendChild( DomElement.create('div', { class: 'palettejs-palette' }, [this._table])); - if (props) { - Base.set(this, props, - { title: true, components: true, values: true }); - } + if (props) + this._set(props, { title: true, components: true, values: true }); // Link to the current scope's palettes list. // TODO: This is the only paper dependency in Palette.js // Find a way to make it independent.