1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shylinux 2020-04-13 21:55:40 +08:00
parent eacbc6b307
commit 53c5740b54

View File

@ -274,7 +274,10 @@ var can = Volcanos("chat", {
run: function(event, cmd, cb, silent) {var msg = can.Event(event); run: function(event, cmd, cb, silent) {var msg = can.Event(event);
msg.Option("_action", item.name); msg.Option("_action", item.name);
(input[item.cb] || can[item.cb] || can.Check)(event, event.target, cb);
cb = typeof input[item.cb] == "function" && input[item.cb]
|| typeof can[item.cb] == "function" && can[item.cb] || can.Check
cb(event, event.target, cb);
}, },
}, Config.libs.concat(["plugin/"+type, "plugin/input/"+(item.figure||"")]), function(input) { }, Config.libs.concat(["plugin/"+type, "plugin/input/"+(item.figure||"")]), function(input) {
var target = input.onimport.init(input, item, name, value, option); var target = input.onimport.init(input, item, name, value, option);