summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-07-03 13:27:47 +0300
committerLeif Åstrand <leif@vaadin.com>2012-07-03 13:27:47 +0300
commitab2846641bff895b9e82bfd8068c720e8132e297 (patch)
tree87f11a1ebdb55be444db0067872a1e999bbd6b12 /src
parent3536d4e5bcc426eded4d09890a4887ba5c3d8832 (diff)
downloadvaadin-framework-ab2846641bff895b9e82bfd8068c720e8132e297.tar.gz
vaadin-framework-ab2846641bff895b9e82bfd8068c720e8132e297.zip
Run JavaScript RPC with this pointing to the connector wrapper (#9096)
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/JavaScriptConnectorHelper.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/JavaScriptConnectorHelper.java b/src/com/vaadin/terminal/gwt/client/JavaScriptConnectorHelper.java
index 86c11fd26d..2b88867cfe 100644
--- a/src/com/vaadin/terminal/gwt/client/JavaScriptConnectorHelper.java
+++ b/src/com/vaadin/terminal/gwt/client/JavaScriptConnectorHelper.java
@@ -331,9 +331,9 @@ public class JavaScriptConnectorHelper {
invokeCallback(getConnectorWrapper(), callbackName, arguments);
} else {
JavaScriptObject arguments = parametersJson.getJavaScriptObject();
- invokeJsRpc(rpcMap, iface, method, arguments);
+ invokeJsRpc(rpcMap, iface, method, arguments, getConnectorWrapper());
// Also invoke wildcard interface
- invokeJsRpc(rpcMap, "", method, arguments);
+ invokeJsRpc(rpcMap, "", method, arguments, getConnectorWrapper());
}
}
@@ -344,7 +344,8 @@ public class JavaScriptConnectorHelper {
}-*/;
private static native void invokeJsRpc(JavaScriptObject rpcMap,
- String interfaceName, String methodName, JavaScriptObject parameters)
+ String interfaceName, String methodName,
+ JavaScriptObject parameters, JavaScriptObject connector)
/*-{
var targets = rpcMap[interfaceName];
if (!targets) {
@@ -352,7 +353,7 @@ public class JavaScriptConnectorHelper {
}
for(var i = 0; i < targets.length; i++) {
var target = targets[i];
- target[methodName].apply(target, parameters);
+ target[methodName].apply(connector, parameters);
}
}-*/;