From cffbc80ac70501098b0fe82efe182e506f77630d Mon Sep 17 00:00:00 2001 From: Andrew Robert Nicols Date: Tue, 18 Sep 2012 11:17:28 +0100 Subject: [PATCH] MDL-34328 Correct usage of e.drop when catching missed drag/drop events --- lib/yui/dragdrop/dragdrop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yui/dragdrop/dragdrop.js b/lib/yui/dragdrop/dragdrop.js index 6669f37126a..4abbe558692 100644 --- a/lib/yui/dragdrop/dragdrop.js +++ b/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); },