Commit 9a63150e authored by Akikonata's avatar Akikonata

dev

parent a069550f
......@@ -23,7 +23,7 @@ kity.extendClass( Minder, {
var moduleDeals = _modules[ key ].call( me );
this._modules[ key ] = moduleDeals;
if ( moduleDeals.init ) {
moduleDeals.init.call( me );
moduleDeals.init.call( me, Utils.extend( moduleDeals.defaultOptions || {}, this._options ) );
}
//command加入命令池子
......
......@@ -46,9 +46,13 @@ KityMinder.registerModule( "ExampleModule", function () {
} );
return {
// TODO: 默认属性
"defaultOptions": {
"test": 123
},
// TODO: 初始化完成后执行的函数
"init": function () {
"init": function ( config ) {
console.log( "init", config );
},
// TODO: 需要注册的命令
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment