aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/JavaScriptFunction.java
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2014-09-03 11:48:47 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2014-09-03 15:33:01 +0300
commit927e424acc1e43a12bdbbcd971302d00717af540 (patch)
treea91f0486fb646f6d1de9a4d590e25100347cc7ec /server/src/com/vaadin/ui/JavaScriptFunction.java
parent600d5b436d7ca33840b1b697082d140a5040bdf3 (diff)
parentf6282cbe0386d03b57a65450bc163b20bfecfb70 (diff)
downloadvaadin-framework-927e424acc1e43a12bdbbcd971302d00717af540.tar.gz
vaadin-framework-927e424acc1e43a12bdbbcd971302d00717af540.zip
Merge remote-tracking branch 'origin/master' into grid
This merge needs Grid to use elemental.json instead of org.json Change-Id: Ib3c387c7e282b2502f266bafbdaad8727f5dc6ef
Diffstat (limited to 'server/src/com/vaadin/ui/JavaScriptFunction.java')
-rw-r--r--server/src/com/vaadin/ui/JavaScriptFunction.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/server/src/com/vaadin/ui/JavaScriptFunction.java b/server/src/com/vaadin/ui/JavaScriptFunction.java
index 2c026abd1a..c006a36d58 100644
--- a/server/src/com/vaadin/ui/JavaScriptFunction.java
+++ b/server/src/com/vaadin/ui/JavaScriptFunction.java
@@ -18,14 +18,12 @@ package com.vaadin.ui;
import java.io.Serializable;
-import org.json.JSONArray;
-import org.json.JSONException;
-
import com.vaadin.server.AbstractJavaScriptExtension;
+import elemental.json.JsonArray;
/**
* Defines a method that is called by a client-side JavaScript function. When
- * the corresponding JavaScript function is called, the {@link #call(JSONArray)}
+ * the corresponding JavaScript function is called, the {@link #call(JsonArray)}
* method is invoked.
*
* @see JavaScript#addFunction(String, JavaScriptCallback)
@@ -46,8 +44,6 @@ public interface JavaScriptFunction extends Serializable {
* @param arguments
* an array with JSON representations of the arguments with which
* the JavaScript function was called.
- * @throws JSONException
- * if the arguments can not be interpreted
*/
- public void call(JSONArray arguments) throws JSONException;
+ public void call(JsonArray arguments);
}