Commit 3bf2700e authored by Akikonata's avatar Akikonata

dev

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