mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-10 01:44:08 +00:00
fix: fix bugs in event mechanism
This commit is contained in:
parent
372a8bd869
commit
eb371580af
@ -459,11 +459,11 @@ public class DesktopEngine extends JSEngine {
|
||||
this.redirectTracePS(ppc);
|
||||
}
|
||||
Invocable cal = engine;
|
||||
if (fun.isExport()
|
||||
if (fun.isExport() ||
|
||||
// if the function has been registered as event handler
|
||||
|| (fun.isHandler()
|
||||
&& (input.getRequester().length() == 40
|
||||
|| input.getRequester().equals("event")))) {
|
||||
(fun.isHandler() &&
|
||||
null != input.getRequester() &&
|
||||
input.getRequester().startsWith("event"))) {
|
||||
Object ret = null;
|
||||
// long start = System.currentTimeMillis();
|
||||
|
||||
|
@ -10,8 +10,7 @@ import java.util.Set;
|
||||
|
||||
public class JSONTool {
|
||||
public static JsonElement convertMirrorToJson(Object ret2) {
|
||||
JsonElement jsonElement = convertMirrorToJsonInternal(ret2, new HashSet<>());
|
||||
return jsonElement;
|
||||
return convertMirrorToJsonInternal(ret2, new HashSet<>());
|
||||
}
|
||||
|
||||
public static Object convertJsonElementToMirror(JsonElement jsonElement) {
|
||||
|
Loading…
Reference in New Issue
Block a user