mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
fix cb
This commit is contained in:
parent
eacbc6b307
commit
53c5740b54
5
frame.js
5
frame.js
@ -274,7 +274,10 @@ var can = Volcanos("chat", {
|
||||
|
||||
run: function(event, cmd, cb, silent) {var msg = can.Event(event);
|
||||
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) {
|
||||
var target = input.onimport.init(input, item, name, value, option);
|
||||
|
Loading…
x
Reference in New Issue
Block a user