From 585c1a2effef15603eab6a68c3340ba727af172b Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 7 Oct 2014 14:19:07 +0100 Subject: [PATCH] Private member variable "queues" renamed "m_queues". (It should always have been this.) --- src/mkws-team.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 1.7.10.4