From f7516c2b071f65329f882edfc288b9c9638331a0 Mon Sep 17 00:00:00 2001 From: "Anthony J. Thibault" Date: Thu, 8 Sep 2016 13:52:19 -0700 Subject: [PATCH] code convention and eslint on createGlobalEventBridge.js --- .../resources/html/createGlobalEventBridge.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/interface/resources/html/createGlobalEventBridge.js b/interface/resources/html/createGlobalEventBridge.js index 429e4b039e..027d6fe8db 100644 --- a/interface/resources/html/createGlobalEventBridge.js +++ b/interface/resources/html/createGlobalEventBridge.js @@ -18,11 +18,13 @@ var EventBridge; this._callbacks = []; this._messages = []; this.scriptEventReceived = { - connect: function (cb) { self._callbacks.push(cb); } + connect: function (callback) { + self._callbacks.push(callback); + } }; this.emitWebEvent = function (message) { self._messages.push(message); - } + }; }; EventBridge = new TempEventBridge(); @@ -31,11 +33,11 @@ var EventBridge; // replace the TempEventBridge with the real one. var tempEventBridge = EventBridge; EventBridge = channel.objects.eventBridgeWrapper.eventBridge; - tempEventBridge._callbacks.forEach(function (cb) { - EventBridge.scriptEventReceived.connect(cb); + tempEventBridge._callbacks.forEach(function (callback) { + EventBridge.scriptEventReceived.connect(callback); }); - tempEventBridge._messages.forEach(function (msg) { - EventBridge.emitWebEvent(msg); + tempEventBridge._messages.forEach(function (message) { + EventBridge.emitWebEvent(message); }); }); })();