From: Mike Taylor Date: Tue, 7 Oct 2014 13:19:07 +0000 (+0100) Subject: Private member variable "queues" renamed "m_queues". X-Git-Tag: 1.0.0~291 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=585c1a2effef15603eab6a68c3340ba727af172b;p=mkws-moved-to-github.git Private member variable "queues" renamed "m_queues". (It should always have been this.) --- diff --git a/src/mkws-team.js b/src/mkws-team.js index a8383e0..3894bad 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -64,17 +64,17 @@ mkws.makeTeam = function($, teamName) { // team.queue("eventName").subscribe(function(param1, param2 ...) { ... }); // team.queue("eventName").publish(arg1, arg2, ...); // - var queues = {}; + var m_queues = {}; function queue(id) { - if (!queues[id]) { + if (!m_queues[id]) { var callbacks = $.Callbacks(); - queues[id] = { + m_queues[id] = { publish: callbacks.fire, subscribe: callbacks.add, unsubscribe: callbacks.remove }; } - return queues[id]; + return m_queues[id]; }; that.queue = queue;