(final Event evt)
| 515 | } |
| 516 | |
| 517 | void fire(final Event evt) { |
| 518 | evt.setTarget(this); |
| 519 | evt.setParentScope(getParentScope()); |
| 520 | evt.setPrototype(getPrototype(evt.getClass())); |
| 521 | |
| 522 | final AbstractJavaScriptEngine<?> engine = containingPage_.getWebClient().getJavaScriptEngine(); |
| 523 | if (engine != null) { |
| 524 | engine.getContextFactory().call(cx -> { |
| 525 | executeEventLocally(evt); |
| 526 | return null; |
| 527 | }); |
| 528 | } |
| 529 | } |
| 530 | |
| 531 | void callFunction(final Function function, final Object[] args) { |
| 532 | if (function == null) { |
no test coverage detected