Commit 3e646f89 authored by Akikonata's avatar Akikonata

dev

parent 5fc1721f
var mindermoduleDefaultTest = function(){
var mindermoduleDefaultTest = function() {
console.log("test loaded");
var stroredData="stored";
var stroredData = "stored";
return {
"commands": {
//todo:command字典,name-action 键值对模式编写
"testCommand":kity.createClass("testCommand",{
base:Command,
"execute":function(km,arg1,arg2,arg3){
console.log(arg1,arg2,arg3);
"testCommand": kity.createClass("testCommand", {
base: Command,
"execute": function(km, arg1, arg2, arg3) {
console.log(arg1, arg2, arg3);
}
})
},
"events": {
//todo:事件响应函数绑定列表,事件名-响应函数 键值对模式编写
"click": function(e){
"click": function(e) {
window.alert("hahaha");
},
"keydown keyup": function(e){
"keydown keyup": function(e) {
window.alert("key");
},
"beforecommand": function(e) {
console.log("precommand:", e);
e.cancel();
},
"command": function(e) {
console.log("command exec!", e);
}
}
};
......
var mindermoduleRender = function(){
console.log("render loaded");
var commandDrawShape = kity.createClass("commandDrawShape",{
base:Command,
"execute":function(km,config){
}
});
return {
"commands": {
//todo:command字典,name-action 键值对模式编写
ommandDrawRect:commandDrawShape
},
"events": {
//todo:事件响应函数绑定列表,事件名-响应函数 键值对模式编写
"click": function(e){
},
"keydown keyup": function(e){
}
}
};
};
\ 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