add element id to event properties
This commit is contained in:
parent
fe548c60f4
commit
60c279ed1c
1 changed files with 1 additions and 0 deletions
|
@ -113,6 +113,7 @@ Ox.Element = function(options, self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function call(callback, data, event) {
|
function call(callback, data, event) {
|
||||||
|
event.ox_id = that.oxid;
|
||||||
event.ox_type = event.type.replace(/^ox_/, '');
|
event.ox_type = event.type.replace(/^ox_/, '');
|
||||||
callback.call(that, data || {}, event);
|
callback.call(that, data || {}, event);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue