Change order of parameters in global bindEvent callback function #123

Closed
opened 2012-12-09 20:43:55 +00:00 by rlx · 1 comment
Owner
bindEvent(function(data, event) { ... })

-->

bindEvent(function(event, data) { ... })
``` bindEvent(function(data, event) { ... }) ``` --> ``` bindEvent(function(event, data) { ... }) ```
rlx added the
Ox.UI
label 2012-12-09 20:43:55 +00:00
rlx self-assigned this 2012-12-09 20:43:55 +00:00
rlx added the
severity: normal
enhancement
0.1
0.1
labels 2012-12-09 20:43:55 +00:00
Author
Owner

Wonfix, see #205.

The above is the catch-all case (bind to any event), but there's also the actually global case (bind to an event of any element).

So there are four cases (element/global catch one/all), and the callback signature should always be (data, event, element).

Wonfix, see #205. The above is the catch-all case (bind to any event), but there's also the actually global case (bind to an event of any element). So there are four cases (element/global catch one/all), and the callback signature should always be (data, event, element).
rlx added the
wontfix
label 2013-12-07 13:30:54 +00:00
rlx closed this issue 2013-12-07 13:30:54 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/oxjs#123
No description provided.