Ticket #2340 (closed bug: fixed)
[UI] Dispatched Events
|Reported by:||scott.gonzalez||Owned by:||scott.gonzalez|
There are currently three models being used for dispatching events in the UI plugins.
$(el).triggerHandler('<action>.ui-<plugin>', [ui], callback);
dialog, draggable, droppable, resizable, selectable, slider, sortable
$(el).triggerHandler('<plugin><action>', [e, ui], callback);
The accordion and tabs models are both missing the event object in the data parameter. The tabs model is also missing the callback.
However, it is unclear which event naming convention should be used. The more widely used "<plugin><action>" convention seems more likely to avoid collisions with other event names. However, the "<action>.ui-<plugin>" convention provides the convenience of having user-defined events be cleaned up if the plugin's destroy method is called.
- Owner changed from paul to scott.gonzalez
- Status changed from assigned to new