rename the 'original event data' property of Ox.List drag & drop events from '_event' to 'event'

This commit is contained in:
rolux 2012-05-28 15:55:35 +02:00
parent 2b592a8f2d
commit ef15919a3e

View file

@ -387,45 +387,45 @@ Ox.List = function(options, self) {
// fixme: shouldn't the target have been
// automatically passed already, somewhere?
that.triggerEvent('draganddropstart', {
ids: self.drag.ids,
_event: data
event: data,
ids: self.drag.ids
});
}
}
function drag(data) {
self.drag && that.triggerEvent('draganddrop', {
ids: self.drag.ids,
_event: data
event: data,
ids: self.drag.ids
});
}
function dragpause(data) {
self.drag && that.triggerEvent('draganddroppause', {
ids: self.drag.ids,
_event: data
event: data,
ids: self.drag.ids
});
}
function dragenter(data) {
self.drag && that.triggerEvent('draganddropenter', {
ids: self.drag.ids,
_event: data
event: data,
ids: self.drag.ids
});
}
function dragleave(data) {
self.drag && that.triggerEvent('draganddropleave', {
ids: self.drag.ids,
_event: data
event: data,
ids: self.drag.ids
});
}
function dragend(data) {
if (self.drag) {
that.triggerEvent('draganddropend', {
ids: self.drag.ids,
_event: data
event: data,
ids: self.drag.ids
});
delete self.drag;
}