add element id to event properties

This commit is contained in:
rolux 2012-06-25 20:40:06 +02:00
parent fe548c60f4
commit 60c279ed1c

View file

@ -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);
} }