提交 6656e45f 编写于 作者: R RubaXa

#166: fixed _onDragOver & group

上级 8141f12d
......@@ -105,7 +105,8 @@
dataTransfer.setData('Text', dragEl.textContent);
}
},
group;
group = options.group;
// Set default options
......@@ -114,10 +115,9 @@
}
if (!options.group.name) {
options.group = { name: options.group };
if (!group || typeof group != 'object') {
group = options.group = { name: group };
}
group = options.group;
['pull', 'put'].forEach(function (key) {
......@@ -450,7 +450,10 @@
isOwner = (activeGroup === group),
canSort = options.sort;
(evt.stopPropagation !== void 0) && evt.stopPropagation();
if (evt.preventDefault !== void 0) {
evt.preventDefault();
evt.stopPropagation();
}
if (!_silent && activeGroup &&
(isOwner
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册