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
5432fbe3
Commit
5432fbe3
authored
Dec 17, 2013
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed module define
parent
bc05310e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
Architecture.md
doc/Architecture.md
+4
-7
No files found.
doc/Architecture.md
View file @
5432fbe3
...
@@ -46,14 +46,13 @@ Module定义一个模块,表示控制脑图中一个功能的模块(布局
...
@@ -46,14 +46,13 @@ Module定义一个模块,表示控制脑图中一个功能的模块(布局
## 定义模式:
## 定义模式:
### function(){
{
return{
"init":function(){
"init":function(){
//todo:基本的初始化工作
//todo:基本的初始化工作
},
},
"commands":{
"commands":{
//todo:command字典,name-action键值对模式编写
//todo:command字典,name-action键值对模式编写
"name":
define(function()
{
"name":{
execute:function(km,args){
execute:function(km,args){
},
},
...
@@ -63,9 +62,8 @@ Module定义一个模块,表示控制脑图中一个功能的模块(布局
...
@@ -63,9 +62,8 @@ Module定义一个模块,表示控制脑图中一个功能的模块(布局
queryState:function(km){
queryState:function(km){
},
},
queryValue:function(km){
queryValue:function(km){
}
}
}
)
}
,
},
},
"events":{
"events":{
//todo:事件响应函数绑定列表,事件名->响应函数键值对模式编写
//todo:事件响应函数绑定列表,事件名->响应函数键值对模式编写
...
@@ -79,8 +77,7 @@ Module定义一个模块,表示控制脑图中一个功能的模块(布局
...
@@ -79,8 +77,7 @@ Module定义一个模块,表示控制脑图中一个功能的模块(布局
"unload":function(){
"unload":function(){
//todo:模块unload时的一些处理
//todo:模块unload时的一些处理
}
}
}
}//处理顺序为 init->commands->events顺次执行,在模块卸载时执行unload函数
###}//处理顺序为 init->commands->events顺次执行,在模块卸载时执行unload函数
## MinderNode
## MinderNode
...
...
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