From fc72fda5fc46daea25a991ba6b907a793e52ed06 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 12 Nov 2013 02:06:24 +0100 Subject: webchat: remove cruft --- webchat/public/client.js | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'webchat/public/client.js') diff --git a/webchat/public/client.js b/webchat/public/client.js index 8865fcc0..a90cf8d6 100644 --- a/webchat/public/client.js +++ b/webchat/public/client.js @@ -6,21 +6,8 @@ $(function updateTime () { return true; }); -var gensym = (function () { - var i = 0 - return function () { - return ++i; - } -})() - settings.waiting_callbacks = {} -function request (settings, method, params, callback) { - var id = gensym() - settings.waiting_callbacks[id] = callback - settings.sock.send({method: method, params: params, id: id}); -} - $(function connect() { settings.sock = new SockJS('/echo'); var transport = make_sockjs_client_transport(settings.sock) -- cgit v1.2.3