aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/testbench/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponentConnector.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testbench/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponentConnector.js b/tests/testbench/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponentConnector.js
index fe8367d18a..b0ece6217d 100644
--- a/tests/testbench/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponentConnector.js
+++ b/tests/testbench/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponentConnector.js
@@ -1,4 +1,5 @@
window.com_vaadin_tests_components_javascriptcomponent_BasicJavaScriptComponent_ExampleWidget = function() {
+ var self = this;
var parentIds = [];
var connectorId = this.getConnectorId();
while(connectorId) {
@@ -30,7 +31,7 @@ window.com_vaadin_tests_components_javascriptcomponent_BasicJavaScriptComponent_
this.registerRpc({
sendRpc: function(message) {
- this.getRpcProxy().sendRpc(message + " processed");
+ self.getRpcProxy().sendRpc(message + " processed");
}
});