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
1b82f700
Commit
1b82f700
authored
Jan 20, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://github.com/kitygraph/kityminder
into dev
parents
cddde595
866f4d76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
history.js
src/module/history.js
+2
-4
No files found.
src/module/history.js
View file @
1b82f700
KityMinder
.
registerModule
(
"HistoryModule"
,
function
()
{
var
Scene
=
kity
.
createClass
(
'Scene'
,{
constructor
:
function
(
root
){
this
.
data
=
root
.
clone
();
...
...
@@ -17,7 +15,7 @@ KityMinder.registerModule( "HistoryModule", function () {
return
this
.
getData
().
equals
(
scene
.
getData
())
}
});
var
HistoryManager
=
kity
.
createClass
(
'
Undo
Manager'
,{
var
HistoryManager
=
kity
.
createClass
(
'
History
Manager'
,{
constructor
:
function
(
km
){
this
.
list
=
[];
this
.
index
=
0
;
...
...
@@ -87,7 +85,7 @@ KityMinder.registerModule( "HistoryModule", function () {
this
.
hasRedo
=
false
;
}
});
//为km实例添加history管理
this
.
historyManager
=
new
HistoryManager
(
this
);
return
{
...
...
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