Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
50447482
Commit
50447482
authored
Aug 05, 2015
by
张博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复了复制粘贴带子节点的节点时发生错误的问题
parent
29b4f267
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
6 deletions
+22
-6
bower.json
bower.json
+1
-1
kityminder.core.js
dist/kityminder.core.js
+8
-1
kityminder.core.min.js
dist/kityminder.core.min.js
+4
-4
clipboard.js
src/module/clipboard.js
+9
-0
No files found.
bower.json
View file @
50447482
...
...
@@ -2,7 +2,7 @@
"name"
:
"kityminder-core"
,
"title"
:
"Kity Minder Core"
,
"description"
:
"Powerful online mind graphic visualization and editor (command based)"
,
"version"
:
"1.4.1
2
"
,
"version"
:
"1.4.1
3
"
,
"main"
:
[
"release/kityminder.core.min.js"
,
"release/kityminder.core.css"
...
...
dist/kityminder.core.js
View file @
50447482
/*!
* ====================================================
* kityminder - v1.4.1 - 2015-0
7-22
* kityminder - v1.4.1 - 2015-0
8-05
* https://github.com/fex-team/kityminder-core
* GitHub: https://github.com/fex-team/kityminder-core.git
* Copyright (c) 2015 Baidu FEX; Licensed MIT
...
...
@@ -4270,6 +4270,13 @@ _p[42] = {
var
children
=
child
.
children
.
map
(
function
(
node
)
{
return
node
.
clone
();
});
/*
* fixed bug: Modified on 2015.08.05
* 原因:粘贴递归 append 时没有清空原来父节点的子节点,而父节点被复制的时候,是连同子节点一起复制过来的
* 解决办法:增加了下面这一行代码
* by: @zhangbobell zhangbobell@163.com
*/
child
.
clearChildren
();
for
(
var
i
=
0
,
ci
;
ci
=
children
[
i
];
i
++
)
{
appendChildNode
(
child
,
ci
);
}
...
...
dist/kityminder.core.min.js
View file @
50447482
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/module/clipboard.js
View file @
50447482
...
...
@@ -20,6 +20,15 @@ define(function(require, exports, module) {
var
children
=
child
.
children
.
map
(
function
(
node
)
{
return
node
.
clone
();
});
/*
* fixed bug: Modified on 2015.08.05
* 原因:粘贴递归 append 时没有清空原来父节点的子节点,而父节点被复制的时候,是连同子节点一起复制过来的
* 解决办法:增加了下面这一行代码
* by: @zhangbobell zhangbobell@163.com
*/
child
.
clearChildren
();
for
(
var
i
=
0
,
ci
;
(
ci
=
children
[
i
]);
i
++
)
{
appendChildNode
(
child
,
ci
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment