MDL-34328 Correct usage of e.drop when catching missed drag/drop events

This commit is contained in:
Andrew Robert Nicols
2012-09-21 15:25:29 +01:00
parent 3f6970bf92
commit cffbc80ac7
+1 -1
View File
@@ -167,11 +167,11 @@ YUI.add('moodle-core-dragdrop', function(Y) {
// we substitute them for the ease of use. For e.drop we use,
// this.lastdroptarget (ghost node we use for indicating where to drop)
e.drag = e.target;
e.drop = this.lastdroptarget;
// Check that drop object belong to correct group
if (!e.drop || !e.drop.inGroup(this.groups)) {
return;
}
e.drop = this.lastdroptarget;
this.drag_dropmiss(e);
},