1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
harveyshao 2021-09-28 18:27:32 +08:00
parent d5fe74945c
commit fd59e5ed2a

View File

@ -183,7 +183,7 @@ Volcanos("onappend", {help: "渲染引擎", list: [], _init: function(can, meta,
} }
var table = can.core.Value(can, "_outputs.-1") var table = can.core.Value(can, "_outputs.-1")
if (msg.Option("_handle") != "true" && cmds && cmds[0] == ctx.ACTION && table.onaction[cmds[1]]) { if (msg.Option("_handle") != "true" && cmds && cmds[0] == ctx.ACTION && table && table.onaction[cmds[1]]) {
return msg.Option("_handle", "true"), can.core.CallFunc(table.onaction[cmds[1]], {event: event, can: table, msg: msg}) return msg.Option("_handle", "true"), can.core.CallFunc(table.onaction[cmds[1]], {event: event, can: table, msg: msg})
} }