mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-10 09:54:07 +00:00
add and change function
This commit is contained in:
parent
f855f49ec7
commit
786efa8279
@ -228,7 +228,6 @@ public class DesktopEngine extends JSEngine {
|
|||||||
|
|
||||||
public Object invokeFunction(String functionName, Object... args) {
|
public Object invokeFunction(String functionName, Object... args) {
|
||||||
Invocable cal = engine;
|
Invocable cal = engine;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return cal.invokeFunction(functionName, args);
|
return cal.invokeFunction(functionName, args);
|
||||||
} catch (ScriptException e) {
|
} catch (ScriptException e) {
|
||||||
@ -236,7 +235,6 @@ public class DesktopEngine extends JSEngine {
|
|||||||
} catch (NoSuchMethodException e) {
|
} catch (NoSuchMethodException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user