Commit 3bf2700e authored by Akikonata's avatar Akikonata

dev

parent 3cb3e8bc
......@@ -10,7 +10,7 @@
</body>
<script>
minder = new KityMinder.Minder(null,{
modules:["ExampleModule"]
});
minder.importData({
......
......@@ -21,9 +21,12 @@ kity.extendClass( Minder, {
},
execCommand: function ( name ) {
var me = this;
var _action = this._getCommand( name );
if ( !_action ) {
var Action = this._getCommand( name );
var _action;
if ( !Action ) {
return false;
} else {
_action = new Action();
}
var cmdArgs = Array.prototype.slice.call( arguments, 1 );
......
......@@ -9,6 +9,7 @@ kity.extendClass( Minder, {
for ( var key in _modules ) {
_list.push( key );
}
return _list;
} )();
var _configModules = option.modules || _modulesList;
if ( _modules ) {
......
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