Commit 94ba87d1 authored by Akikonata's avatar Akikonata

dev

parent 360c83bf
......@@ -9,6 +9,7 @@
"quotmark": false,
"predef" : [
"kity",
"KityMinder",
"MinderNode",
"MinderEvent",
"Minder",
......
......@@ -9,7 +9,9 @@
</body>
<script>
minder = new km.KityMinder();
minder = new km.KityMinder(null,{
modules:["test","test1","test2"]
});
minder.importData({
data: {
......@@ -38,6 +40,6 @@
}]
}]
});
minder.update();
minder.execCommand( 'rendertree', node );
</script>
</html>
\ No newline at end of file
......@@ -11,7 +11,6 @@ kity.extendClass( Minder, {
}
} )();
var _configModules = this.option.modules || _modulesList;
var _commands = this._commands;
if ( _modules ) {
var me = this;
for ( var i = 0; i < _configModules.length; i++ ) {
......@@ -27,7 +26,7 @@ kity.extendClass( Minder, {
var moduleDealsCommands = moduleDeals.commands;
if ( moduleDealsCommands ) {
for ( var _keyC in moduleDealsCommands ) {
_commands[ _keyC ] = moduleDealsCommands[ _keyC ];
this._commands[ _keyC ] = moduleDealsCommands[ _keyC ];
}
}
......
......@@ -25,7 +25,6 @@ kity.extendClass( Minder, {
},
update: function ( node ) {
this.execCommand( 'renderroot', node );
return this;
}
......
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