mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Also consider palette component's initial values.
This commit is contained in:
parent
74bce39184
commit
01c936e1b9
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ var Palette = this.Palette = Base.extend(Callback, /** @lends Palette# */{
|
|||
// Make sure each component has an entry in values, so observers get
|
||||
// installed further down.
|
||||
if (values[name] === undefined)
|
||||
values[name] = null;
|
||||
values[name] = component.value;
|
||||
}
|
||||
// Now replace each entry in values with a getter / setters so we can
|
||||
// observe change.
|
||||
|
|
Loading…
Reference in a new issue