diff options
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/JavaScript.java')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/JavaScript.java | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/server/src/main/java/com/vaadin/ui/JavaScript.java b/server/src/main/java/com/vaadin/ui/JavaScript.java index 97fd0ad3f3..429f52c3cc 100644 --- a/server/src/main/java/com/vaadin/ui/JavaScript.java +++ b/server/src/main/java/com/vaadin/ui/JavaScript.java @@ -52,15 +52,16 @@ public class JavaScript extends AbstractExtension { * object. */ public JavaScript() { - registerRpc((JavaScriptCallbackRpc) (String name, JsonArray arguments) -> { - JavaScriptFunction function = functions.get(name); - // TODO handle situation if name is not registered - try { - function.call(arguments); - } catch (JsonException e) { - throw new IllegalArgumentException(e); - } - }); + registerRpc( + (JavaScriptCallbackRpc) (String name, JsonArray arguments) -> { + JavaScriptFunction function = functions.get(name); + // TODO handle situation if name is not registered + try { + function.call(arguments); + } catch (JsonException e) { + throw new IllegalArgumentException(e); + } + }); } @Override @@ -68,6 +69,11 @@ public class JavaScript extends AbstractExtension { return (JavaScriptManagerState) super.getState(); } + @Override + protected JavaScriptManagerState getState(boolean markAsDirty) { + return (JavaScriptManagerState) super.getState(markAsDirty); + } + /** * Add a new function to the global JavaScript namespace (i.e. the window * object). The <code>call</code> method in the passed |