From: Mike Taylor Date: Tue, 7 Oct 2014 16:57:35 +0000 (+0100) Subject: Set the "record" callback whenever "records" is subscribed, since the X-Git-Tag: 1.0.0~286 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=0190683efb6f8bfbbbff2d744501fa57e670e3ce Set the "record" callback whenever "records" is subscribed, since the former only gets subscribed from the latter's callback. --- diff --git a/src/mkws-team.js b/src/mkws-team.js index 8a73211..0879add 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -179,8 +179,7 @@ mkws.makeTeam = function($, teamName) { if (m_queues.records) { log("setting show callback"); params.onshow = onShow; - } - if (m_queues.record) { + // Record callback is subscribed from records callback log("setting record callback"); params.onrecord = onRecord; }