Also consider palette component's initial values.

This commit is contained in:
Jürg Lehni 2012-11-14 12:30:13 -08:00
parent 74bce39184
commit 01c936e1b9

View file

@ -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.