Welcome to the Lobeo Module Server project. Please feel free to submit bugs related to it.
FS#183 - Event delegation
Attached to Project:
LMS
Opened by Guillaume (Guillaume) - Tuesday, 02 August 2011, 18:21 GMT
Last edited by Guillaume (Guillaume) - Wednesday, 25 April 2012, 07:31 GMT
Opened by Guillaume (Guillaume) - Tuesday, 02 August 2011, 18:21 GMT
Last edited by Guillaume (Guillaume) - Wednesday, 25 April 2012, 07:31 GMT
|
DetailsHi,
For the UIToolkiy, in some cases, it should be useful to delegate the CLICK event to the parent component (or another). Implement somthing like that: child.delegate('CLICK', parent); The use case is : Share a component to multiple model instance, but you don't want to share the CLICK event. (ie, when one click on the component, you don't want to do the same thing on others models) Guillaume |
This task depends upon
client.addEventListener(component, function(topic) {
// code here
});