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/ui/JavaScript.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/ui/JavaScript.java')
-rw-r--r-- | server/src/com/vaadin/ui/JavaScript.java | 8 |
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); } /** |