Duplicate config options
i'm a bit confused about some duplicate config options in class hirachie.
For example if you look at Panel.
The Panel defines 'applyTo' as option.
Panel extends Container extends BoxComponent extends Component which itself defines 'applyTo' as config option.
The same can be seen with 'bubbleEvents' in Container.
Container extends BoxComponet extends Component which also defines 'bubbleEvents' itself.
Does someone now whats the matter with this?
Sorry but NO...
if I look at the API for Panel I see the config options table and for 'applyTo' the column 'Defined By' says 'Panel' ... so I think you should take a look at the API ;-).
Yes. That one is implemented separately in Panel because Panel requires extra internal structure (bwrap, body, header, footer etc)
OK, and what about the 'bubbleEvents' option?
Thanks a lot..
It's available and processed in the Component base class.
It could be redefined in each subclass.
It's  in Component, and ['add', 'remove'] in Container because each has different requirements.