rse / componentjs

ComponentJS -- Powerful run-time Component System for structuring HTML5-based Rich Clients
http://componentjs.com/
Other
85 stars 13 forks source link

function state_auto_increase vs property ComponentJS:state-auto-increase #43

Open JochenHoertreiter opened 8 years ago

JochenHoertreiter commented 8 years ago

The api method state_auto_increase sets this flag only on the targeted component.

The undocumented property ComponentJS:state-auto-increase seems to spread its value to the targeted components children.

The property is useful if you want to enable/disable state auto increase on a specific component and all its children - not only the current children but also future children.

The api method is useful when you want to enable/disable state auto increase on only the targeted component.

It should be possible to enable both ways with a single api method - and no internal property.

The same issue is true for state_auto_decrease