From fd59e5ed2a22eb7bce58feb638301b80ed488f2c Mon Sep 17 00:00:00 2001 From: harveyshao Date: Tue, 28 Sep 2021 18:27:32 +0800 Subject: [PATCH] opt some --- frame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame.js b/frame.js index 864aaf84..6dadc9e7 100644 --- a/frame.js +++ b/frame.js @@ -183,7 +183,7 @@ Volcanos("onappend", {help: "渲染引擎", list: [], _init: function(can, meta, } 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}) }