aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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