From 54b659b5d6e0c4d2a8aa947e02a96da7bb1f6e19 Mon Sep 17 00:00:00 2001 From: oc Date: Thu, 21 Mar 2019 01:09:42 +0800 Subject: [PATCH] Fix insertAction bug --- libs/events.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/events.js b/libs/events.js index 7afbc881..93d5e143 100644 --- a/libs/events.js +++ b/libs/events.js @@ -755,7 +755,8 @@ events.prototype.setEvents = function (list, x, y, callback) { if (x != null) data.x = x; if (y != null) data.y = y; if (callback) data.callback = callback; - core.status.event = {id: 'action', data: data}; + core.status.event.id = 'action'; + core.status.event.data = data; } ////// 执行当前自定义事件列表中的下一个事件 //////