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
|
// fixme: shouldn't the target have been
|
||||||
// automatically passed already, somewhere?
|
// automatically passed already, somewhere?
|
||||||
that.triggerEvent('draganddropstart', {
|
that.triggerEvent('draganddropstart', {
|
||||||
ids: self.drag.ids,
|
event: data,
|
||||||
_event: data
|
ids: self.drag.ids
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function drag(data) {
|
function drag(data) {
|
||||||
self.drag && that.triggerEvent('draganddrop', {
|
self.drag && that.triggerEvent('draganddrop', {
|
||||||
ids: self.drag.ids,
|
event: data,
|
||||||
_event: data
|
ids: self.drag.ids
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function dragpause(data) {
|
function dragpause(data) {
|
||||||
self.drag && that.triggerEvent('draganddroppause', {
|
self.drag && that.triggerEvent('draganddroppause', {
|
||||||
ids: self.drag.ids,
|
event: data,
|
||||||
_event: data
|
ids: self.drag.ids
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function dragenter(data) {
|
function dragenter(data) {
|
||||||
self.drag && that.triggerEvent('draganddropenter', {
|
self.drag && that.triggerEvent('draganddropenter', {
|
||||||
ids: self.drag.ids,
|
event: data,
|
||||||
_event: data
|
ids: self.drag.ids
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function dragleave(data) {
|
function dragleave(data) {
|
||||||
self.drag && that.triggerEvent('draganddropleave', {
|
self.drag && that.triggerEvent('draganddropleave', {
|
||||||
ids: self.drag.ids,
|
event: data,
|
||||||
_event: data
|
ids: self.drag.ids
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function dragend(data) {
|
function dragend(data) {
|
||||||
if (self.drag) {
|
if (self.drag) {
|
||||||
that.triggerEvent('draganddropend', {
|
that.triggerEvent('draganddropend', {
|
||||||
ids: self.drag.ids,
|
event: data,
|
||||||
_event: data
|
ids: self.drag.ids
|
||||||
});
|
});
|
||||||
delete self.drag;
|
delete self.drag;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue