From 33d24f79ce54b5d21e2657e8feb1206f1e42e72e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20O=CC=88berg?= Date: Sat, 14 Feb 2015 22:25:25 +0100 Subject: [PATCH] Fixes bug that prevented unsubscribe from WebSockets, browser side. Fixes node-red/node-red/#562 --- public/red/comms.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/red/comms.js b/public/red/comms.js index 8a8d1e174..b6aba53db 100644 --- a/public/red/comms.js +++ b/public/red/comms.js @@ -95,15 +95,15 @@ RED.comms = (function() { } function unsubscribe(topic,callback) { - if (subscriptions.topic) { - for (var i=0;i