summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/JavaScript.java
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-08-23 11:23:10 +0300
committerLeif Åstrand <leif@vaadin.com>2012-08-23 11:23:10 +0300
commitaf8afede9f0d196a28792dea9e587a1eac829902 (patch)
treeb95ec915d266e8a95f781b27b5b204503d4eb0fd /server/src/com/vaadin/ui/JavaScript.java
parent8606feb8596ed8f6cd3ed41160706b692f6f4679 (diff)
downloadvaadin-framework-af8afede9f0d196a28792dea9e587a1eac829902.tar.gz
vaadin-framework-af8afede9f0d196a28792dea9e587a1eac829902.zip
Handle requestRepaint automatically (#9325)
Diffstat (limited to 'server/src/com/vaadin/ui/JavaScript.java')
-rw-r--r--server/src/com/vaadin/ui/JavaScript.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/server/src/com/vaadin/ui/JavaScript.java b/server/src/com/vaadin/ui/JavaScript.java
index 5984c63e7a..e34ccae82a 100644
--- a/server/src/com/vaadin/ui/JavaScript.java
+++ b/server/src/com/vaadin/ui/JavaScript.java
@@ -93,9 +93,7 @@ public class JavaScript extends AbstractExtension {
*/
public void addFunction(String name, JavaScriptFunction function) {
functions.put(name, function);
- if (getState().getNames().add(name)) {
- requestRepaint();
- }
+ getState().getNames().add(name);
}
/**
@@ -111,9 +109,7 @@ public class JavaScript extends AbstractExtension {
*/
public void removeFunction(String name) {
functions.remove(name);
- if (getState().getNames().remove(name)) {
- requestRepaint();
- }
+ getState().getNames().remove(name);
}
/**