diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-08-23 11:23:10 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-08-23 11:23:10 +0300 |
commit | af8afede9f0d196a28792dea9e587a1eac829902 (patch) | |
tree | b95ec915d266e8a95f781b27b5b204503d4eb0fd /server/src/com/vaadin/terminal/JavaScriptCallbackHelper.java | |
parent | 8606feb8596ed8f6cd3ed41160706b692f6f4679 (diff) | |
download | vaadin-framework-af8afede9f0d196a28792dea9e587a1eac829902.tar.gz vaadin-framework-af8afede9f0d196a28792dea9e587a1eac829902.zip |
Handle requestRepaint automatically (#9325)
Diffstat (limited to 'server/src/com/vaadin/terminal/JavaScriptCallbackHelper.java')
-rw-r--r-- | server/src/com/vaadin/terminal/JavaScriptCallbackHelper.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/server/src/com/vaadin/terminal/JavaScriptCallbackHelper.java b/server/src/com/vaadin/terminal/JavaScriptCallbackHelper.java index 6153cf2619..f0063a8708 100644 --- a/server/src/com/vaadin/terminal/JavaScriptCallbackHelper.java +++ b/server/src/com/vaadin/terminal/JavaScriptCallbackHelper.java @@ -60,9 +60,7 @@ public class JavaScriptCallbackHelper implements Serializable { JavaScriptFunction javaScriptCallback) { callbacks.put(functionName, javaScriptCallback); JavaScriptConnectorState state = getConnectorState(); - if (state.getCallbackNames().add(functionName)) { - connector.requestRepaint(); - } + state.getCallbackNames().add(functionName); ensureRpc(); } @@ -100,7 +98,6 @@ public class JavaScriptCallbackHelper implements Serializable { connector.addMethodInvocationToQueue( JavaScriptCallbackRpc.class.getName(), CALL_METHOD, new Object[] { name, args }); - connector.requestRepaint(); } public void registerRpc(Class<?> rpcInterfaceType) { @@ -119,7 +116,6 @@ public class JavaScriptCallbackHelper implements Serializable { } rpcInterfaces.put(interfaceName, methodNames); - connector.requestRepaint(); } } |