Commit b6898c89 authored by Akikonata's avatar Akikonata

added expand module

parent 93298aab
KityMinder.registerModule( "Expand", function () {
var ExpandCommand = kity.createClass( "ExpandCommand", ( function () {
return {
base: Command,
execute: function ( km ) {
km.initStyle( true );
},
queryState: function ( km ) {
return 0;
}
};
} )() );
var ContractCommand = kity.createClass( "ContractCommand", ( function () {
return {
base: Command,
execute: function ( km ) {
km.initStyle();
},
queryState: function ( km ) {
return 0;
}
};
} )() );
return {
'commands': {
'expand': ExpandCommand,
'contract': ContractCommand
}
};
} );
\ No newline at end of file
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