From 5552fb996bace02e31cbcfcc5b0929db298dda06 Mon Sep 17 00:00:00 2001 From: Noah Zalev Date: Tue, 22 Jun 2021 19:54:37 -0400 Subject: [PATCH] Bugfix: variable name typo --- meshcentral.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshcentral.js b/meshcentral.js index 2299773b..c008a3fc 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -1958,7 +1958,7 @@ function CreateMeshCentralServer(config, args) { for (var i in ids) { var id = ids[i]; if (!obj.eventsDispatch[id]) { obj.eventsDispatch[id] = [target]; } else { obj.eventsDispatch[id].push(target); } } }; obj.RemoveEventDispatch = function (ids, target) { - obj.debug('dispatch', 'RemoveEventDispatch', id); + obj.debug('dispatch', 'RemoveEventDispatch', ids); for (var i in ids) { var id = ids[i]; if (obj.eventsDispatch[id]) { var j = obj.eventsDispatch[id].indexOf(target); if (j >= 0) { if (obj.eventsDispatch[id].length == 1) { delete obj.eventsDispatch[id]; } else { obj.eventsDispatch[id].splice(j, 1); } } } } }; obj.RemoveEventDispatchId = function (id) {