未验证 提交 bebf1f67 编写于 作者: F Flame2057 提交者: GitHub

Merge pull request #1384 from chinacoolboyzz/master

Modify the onChoose event firing order to allow for getting element information before chosenClass is applied
......@@ -434,15 +434,15 @@
// Make the element draggable
dragEl.draggable = _this.nativeDraggable;
// Chosen item
_toggleClass(dragEl, options.chosenClass, true);
// Bind the events: dragstart/dragend
_this._triggerDragStart(evt, touch);
// Drag start event
_dispatchEvent(_this, rootEl, 'choose', dragEl, rootEl, rootEl, oldIndex);
// Chosen item
_toggleClass(dragEl, options.chosenClass, true);
};
// Disable "draggable"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册