From ed8b91d652850c5d39f71d8b39e7d0ae12548232 Mon Sep 17 00:00:00 2001 From: Darren Date: Sat, 31 May 2014 21:39:13 +0100 Subject: [PATCH] Client plugin RPC call improvement --- client/src/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/app.js b/client/src/app.js index e4b6523..3d53434 100644 --- a/client/src/app.js +++ b/client/src/app.js @@ -20,6 +20,9 @@ _kiwi.global = { plugins: undefined, // Instance of _kiwi.model.PluginManager events: undefined, // Instance of PluginInterface utils: {}, // TODO: Re-usable methods + rpc: function() { + _kiwi.gateway.rpc.call.call(_kiwi.gateway.rpc, arguments); + }, addMediaMessageType: function(match, buildHtml) { _kiwi.view.MediaMessage.addType(match, buildHtml); @@ -120,9 +123,6 @@ _kiwi.global = { // Event emitter to let plugins interface with parts of kiwi _kiwi.global.events = new PluginInterface(); - // Let plugins interface with the RPC calls - _kiwi.globals.rpcCall = _kiwi.gateway.rpcCall; - // Now everything has started up, load the plugin manager for third party plugins _kiwi.global.plugins = new _kiwi.model.PluginManager(); -- 2.25.1