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
e37d42d1
Commit
e37d42d1
authored
Jan 06, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev
parent
47715138
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
kity
kity
+1
-1
node.js
src/core/node.js
+3
-0
_example.js
src/module/_example.js
+3
-2
No files found.
kity
@
a1524e4d
Subproject commit
ff63268509146ce38933b6cd4920ae0a9659ac17
Subproject commit
a1524e4d22c448d4e7e2766b7029f2e51db04f0c
src/core/node.js
View file @
e37d42d1
...
...
@@ -107,6 +107,9 @@ var MinderNode = KityMinder.MinderNode = kity.createClass( "MinderNode", {
},
setData
:
function
(
name
,
value
)
{
if
(
arguments
.
length
==
1
&&
typeof
(
arguments
[
0
]
)
==
'object'
)
{
Utils
.
extend
(
this
.
data
,
arguments
[
0
]
);
}
this
.
data
[
name
]
=
value
;
},
...
...
src/module/_example.js
View file @
e37d42d1
...
...
@@ -50,9 +50,10 @@ KityMinder.registerModule( "ExampleModule", function () {
"defaultOptions"
:
{
"test"
:
123
},
// TODO: 初始化完成后执行的函数
"init"
:
function
(
config
)
{
console
.
log
(
"init"
,
config
);
//
console.log( "init", config );
},
// TODO: 需要注册的命令
...
...
@@ -77,7 +78,7 @@ KityMinder.registerModule( "ExampleModule", function () {
if
(
this
.
_cheated
[
0
]
==
e
.
keyCode
)
{
this
.
_cheated
.
shift
();
}
console
.
log
(
this
.
_cheated
);
//
console.log( this._cheated );
if
(
this
.
_cheated
.
length
===
0
)
{
this
.
execCommand
(
'cheat'
);
}
...
...
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