Browse files

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

  • Loading branch information...
1 parent 3f6970b commit cffbc80ac70501098b0fe82efe182e506f77630d @andrewnicols andrewnicols committed Sep 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/yui/dragdrop/dragdrop.js
View
2 lib/yui/dragdrop/dragdrop.js
@@ -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);
},

0 comments on commit cffbc80

Please sign in to comment.