From 2ca22025ea82f646d7635a6cf22ef84af9963590 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 1 Aug 2015 16:36:14 +0200 Subject: [PATCH] fixed emitting groupDragged event in callback --- lib/timeline/component/ItemSet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/timeline/component/ItemSet.js b/lib/timeline/component/ItemSet.js index f4b0c7a8..0ca64fe1 100644 --- a/lib/timeline/component/ItemSet.js +++ b/lib/timeline/component/ItemSet.js @@ -1597,9 +1597,9 @@ ItemSet.prototype._onGroupDragEnd = function (event) { } } - - me.body.emitter.emit('groupDragged', { groupId: this.groupTouchParams.group.groupId }); }); + + me.body.emitter.emit('groupDragged', { groupId: id }); } }