Set the "record" callback whenever "records" is subscribed, since the
authorMike Taylor <mike@indexdata.com>
Tue, 7 Oct 2014 16:57:35 +0000 (17:57 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 7 Oct 2014 16:57:35 +0000 (17:57 +0100)
former only gets subscribed from the latter's callback.

src/mkws-team.js

index 8a73211..0879add 100644 (file)
@@ -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;
     }