mirror of
https://shylinux.com/x/volcanos
synced 2025-05-06 13:17:02 +08:00
opt some
This commit is contained in:
parent
c28a0091b5
commit
937ac50c56
13
frame.js
13
frame.js
@ -206,7 +206,15 @@ Volcanos("onappend", {help: "渲染引擎", list: [], _init: function(can, meta,
|
||||
_output0: function(can, meta, event, cmds, cb, silent) { var msg = can.request(event); if (msg.RunAction(event, can, cmds)) { return }
|
||||
if (msg.Option(ice.MSG_HANDLE) != ice.TRUE && cmds && cmds[0] == ctx.ACTION && meta.feature[cmds[1]]) { can.request(event, {action: cmds[1]})
|
||||
return can.user.input(event, can, meta.feature[cmds[1]], function(ev, button, data, list, args) { var msg = can.request(event, {_handle: ice.TRUE}, can.Option())
|
||||
can.Update(event, cmds.slice(0, 2).concat(args), cb||function() { can.Update() }, true)
|
||||
can.Update(event, cmds.slice(0, 2).concat(args), cb||function() {
|
||||
if (can.core.CallFunc([can.sup, chat.ONIMPORT, ice.MSG_PROCESS], {can: can.sup, msg: msg})) { return }
|
||||
if (msg.Result().length > 0 || msg.Length() > 0) {
|
||||
can.onappend.table(can, msg)
|
||||
can.onappend.board(can, msg)
|
||||
} else {
|
||||
can.Update()
|
||||
}
|
||||
}, true)
|
||||
})
|
||||
}
|
||||
|
||||
@ -352,7 +360,8 @@ Volcanos("onappend", {help: "渲染引擎", list: [], _init: function(can, meta,
|
||||
function run(cmds) { var msg = can.sup.request(event, line, can.Option())
|
||||
return can.run(event, cmds, function(msg) {
|
||||
if (can.core.CallFunc([can.sup, chat.ONIMPORT, ice.MSG_PROCESS], {can: can.sup, msg: msg})) { return }
|
||||
if (msg.Result().length > 0) {
|
||||
if (msg.Result().length > 0 || msg.Length() > 0) {
|
||||
can.onappend.table(can, msg)
|
||||
can.onappend.board(can, msg)
|
||||
} else {
|
||||
can.Update()
|
||||
|
Loading…
x
Reference in New Issue
Block a user