Commit bc2fc1b5 authored by 张博's avatar 张博

ISSUE= fix(dragtree): fix bug of drag node reverse, close...

ISSUE= fix(dragtree): fix bug of drag node reverse, close fex-team/kityminder-editor#118, fex-team/kityminder-editor#119, fex-team/kityminder-editor#220
parent 3d0d775c
......@@ -10,7 +10,7 @@ define(function(require, exports, module) {
base: Command,
execute: function(minder, nodes, parent) {
var node;
for (var i = nodes.length - 1; i >= 0; i--) {
for (var i = 0; i < nodes.length; i++) {
node = nodes[i];
if (node.parent) {
node.parent.removeChild(node);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment