aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Collovati <mcollovati@gmail.com>2016-07-15 10:56:42 +0200
committerVaadin Code Review <review@vaadin.com>2016-07-19 07:55:24 +0000
commit5aee23ed30ae1cffce205888acd6ea76e599a46c (patch)
tree8a909385b7b52c9bacebd31baad010bec98010d6
parenta6e9d0de179758c578cdb482f20af6d243ebf5f0 (diff)
downloadvaadin-framework-5aee23ed30ae1cffce205888acd6ea76e599a46c.tar.gz
vaadin-framework-5aee23ed30ae1cffce205888acd6ea76e599a46c.zip
Document onUnregister in JS component/extension javadocs (#19799)
Change-Id: I659561533420af1977003f918eb8f3f6479c6b6f
-rw-r--r--server/src/main/java/com/vaadin/server/AbstractJavaScriptExtension.java2
-rw-r--r--server/src/main/java/com/vaadin/ui/AbstractJavaScriptComponent.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/server/AbstractJavaScriptExtension.java b/server/src/main/java/com/vaadin/server/AbstractJavaScriptExtension.java
index 2fb50fe7dd..0bfee4c20f 100644
--- a/server/src/main/java/com/vaadin/server/AbstractJavaScriptExtension.java
+++ b/server/src/main/java/com/vaadin/server/AbstractJavaScriptExtension.java
@@ -91,6 +91,8 @@ import elemental.json.JsonValue;
* <li><code>onStateChange</code> - If the JavaScript code assigns a function to
* the field, that function is called whenever the contents of the shared state
* is changed.</li>
+ * <li><code>onUnregister</code> - If the JavaScript code assigns a function to
+ * the field, that function is called when the connector has been unregistered.</li>
* <li>Any field name corresponding to a call to
* {@link #addFunction(String, JavaScriptFunction)} on the server will
* automatically be present as a function that triggers the registered function
diff --git a/server/src/main/java/com/vaadin/ui/AbstractJavaScriptComponent.java b/server/src/main/java/com/vaadin/ui/AbstractJavaScriptComponent.java
index 68ff947137..68ee132b76 100644
--- a/server/src/main/java/com/vaadin/ui/AbstractJavaScriptComponent.java
+++ b/server/src/main/java/com/vaadin/ui/AbstractJavaScriptComponent.java
@@ -105,6 +105,8 @@ import elemental.json.JsonValue;
* <li><code>onStateChange</code> - If the JavaScript code assigns a function to
* the field, that function is called whenever the contents of the shared state
* is changed.</li>
+ * <li><code>onUnregister</code> - If the JavaScript code assigns a function to
+ * the field, that function is called when the connector has been unregistered.</li>
* <li>Any field name corresponding to a call to
* {@link #addFunction(String, JavaScriptFunction)} on the server will
* automatically be present as a function that triggers the registered function