From: Darren Date: Sat, 31 May 2014 20:39:13 +0000 (+0100) Subject: Client plugin RPC call improvement X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ed8b91d652850c5d39f71d8b39e7d0ae12548232;p=KiwiIRC.git Client plugin RPC call improvement --- 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();