mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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
|
// Make sure each component has an entry in values, so observers get
|
||||||
// installed further down.
|
// installed further down.
|
||||||
if (values[name] === undefined)
|
if (values[name] === undefined)
|
||||||
values[name] = null;
|
values[name] = component.value;
|
||||||
}
|
}
|
||||||
// Now replace each entry in values with a getter / setters so we can
|
// Now replace each entry in values with a getter / setters so we can
|
||||||
// observe change.
|
// observe change.
|
||||||
|
|
Loading…
Reference in a new issue