diff --git a/addons/live_support/static/ext/static/js/livesupport.js b/addons/live_support/static/ext/static/js/livesupport.js index c77b7a2019c..b3bfad0f79d 100644 --- a/addons/live_support/static/ext/static/js/livesupport.js +++ b/addons/live_support/static/ext/static/js/livesupport.js @@ -38,13 +38,16 @@ define(["nova", "jquery", "underscore"], function(nova, $, _) { }); }; - var JsonRPCConnector = nova.Class.$extend({ - __init__: function(url) { - this.url = url + "/jsonrpc"; - }, + var Connector = nova.Class.$extend({ getService: function(serviceName) { return new Service(this, serviceName); }, + }); + + var JsonRPCConnector = Connector.$extend({ + __init__: function(url) { + this.url = url + "/jsonrpc"; + }, send: function(serviceName, method, args) { return jsonRpc(this.url, "call", {"service": serviceName, "method": method, "args": args}); },