digitalfruit/limejs — Issue #20: Calling setHidden(true) on layer does not clear event listeners on children.
Author: tonistiigi
Created: 2012-01-26 08:36:41+00:00
State: open

Calling setHidden(true) on layer does not clear event listeners on children.

Solution 1:
Calling setHidden(true) on layer should also call setHidden(true) on children objects. This would need extra value to see if call was inhreted to have correct behavior on setHidden(false).

Solution 2:
Rewrite getHidden() method to scan all the parents and return true if one of them is hidden. Simpler but has performance penalty.

Originated from: http://groups.google.com/group/limejs/browse_thread/thread/08688d9c605f0a5a#