Commit 94ba87d1 authored by Akikonata's avatar Akikonata

dev

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