Commit 63464eb7 authored by Akikonata's avatar Akikonata

changed initial into init

parent f4ec4b92
...@@ -22,8 +22,8 @@ kity.extendClass( Minder, { ...@@ -22,8 +22,8 @@ kity.extendClass( Minder, {
//执行模块初始化,抛出后续处理对象 //执行模块初始化,抛出后续处理对象
var moduleDeals = _modules[ key ].call( me ); var moduleDeals = _modules[ key ].call( me );
this._modules[ key ] = moduleDeals; this._modules[ key ] = moduleDeals;
if ( moduleDeals.initial ) { if ( moduleDeals.init ) {
moduleDeals.initial.call( me ); moduleDeals.init.call( me );
} }
//command加入命令池子 //command加入命令池子
......
...@@ -42,37 +42,9 @@ KityMinder.registerModule( "RenderModule", function () { ...@@ -42,37 +42,9 @@ KityMinder.registerModule( "RenderModule", function () {
} }
}; };
} )() ); } )() );
// var DrawShapeCommand = kity.createClass( "DrawShapeCommand", {
// base: Command,
// execute: function ( km, node ) {
// var dR = km.getRenderContainer();
// node = node || km.getRoot();
// km.traverse( node, function ( current ) {
// var rc = current.getRenderContainer();
// var x = current.getData( 'x' ) || 0,
// y = current.getData( 'y' ) || 0;
// rc.setTransform( new kity.Matrix().translate( x, y ) );
// if ( !rc.rect ) {
// rc.rect = new kity.Rect();
// rc.addShape( rc.rect );
// rc.rect.fill( '#eee' );
// rc.rect.setRadius( 5 );
// }
// if ( !rc.text ) {
// rc.text = new kity.Text();
// rc.addShape( rc.text );
// }
// rc.text.setContent( current.getData( 'text' ) || '' );
// var box = rc.text.getRenderBox();
// rc.rect.setPosition( box.x - 5, box.y - 5 );
// rc.rect.setSize( box.width + 10, box.height + 10 );
// } );
// }
// } );
return { return {
"initial": function ( config ) { "init": function ( config ) {
}, },
"commands": { "commands": {
......
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