rename the 'original event data' property of Ox.List drag & drop events from '_event' to 'event'
This commit is contained in:
parent
2b592a8f2d
commit
ef15919a3e
1 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue