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
9a63150e
Commit
9a63150e
authored
Dec 24, 2013
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev
parent
a069550f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
minder.module.js
src/core/minder.module.js
+1
-1
_example.js
src/module/_example.js
+6
-2
No files found.
src/core/minder.module.js
View file @
9a63150e
...
@@ -23,7 +23,7 @@ kity.extendClass( Minder, {
...
@@ -23,7 +23,7 @@ kity.extendClass( Minder, {
var
moduleDeals
=
_modules
[
key
].
call
(
me
);
var
moduleDeals
=
_modules
[
key
].
call
(
me
);
this
.
_modules
[
key
]
=
moduleDeals
;
this
.
_modules
[
key
]
=
moduleDeals
;
if
(
moduleDeals
.
init
)
{
if
(
moduleDeals
.
init
)
{
moduleDeals
.
init
.
call
(
me
);
moduleDeals
.
init
.
call
(
me
,
Utils
.
extend
(
moduleDeals
.
defaultOptions
||
{},
this
.
_options
)
);
}
}
//command加入命令池子
//command加入命令池子
...
...
src/module/_example.js
View file @
9a63150e
...
@@ -46,9 +46,13 @@ KityMinder.registerModule( "ExampleModule", function () {
...
@@ -46,9 +46,13 @@ KityMinder.registerModule( "ExampleModule", function () {
}
);
}
);
return
{
return
{
// TODO: 默认属性
"defaultOptions"
:
{
"test"
:
123
},
// TODO: 初始化完成后执行的函数
// TODO: 初始化完成后执行的函数
"init"
:
function
()
{
"init"
:
function
(
config
)
{
console
.
log
(
"init"
,
config
);
},
},
// TODO: 需要注册的命令
// TODO: 需要注册的命令
...
...
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