From cf2784fcdbcee7a0ce3dbf8ddb1e71f8cc72bb9e Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sat, 28 Jan 2017 16:38:24 -0500 Subject: [PATCH] more eslin --- frontend/src/Metamaps/Util.js | 3 +-- frontend/src/Metamaps/Views/ChatView.js | 1 - frontend/src/Metamaps/Views/index.js | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/src/Metamaps/Util.js b/frontend/src/Metamaps/Util.js index 5bfe9303..ed9783c3 100644 --- a/frontend/src/Metamaps/Util.js +++ b/frontend/src/Metamaps/Util.js @@ -139,8 +139,7 @@ const Util = { // remove images to avoid http content in https context const walker = parsed.walker() - let event - while (event = walker.next()) { + for (let event = walker.next(); event = walker.next(); event) { const node = event.node if (node.type === 'image') { const imageAlt = node.firstChild.literal diff --git a/frontend/src/Metamaps/Views/ChatView.js b/frontend/src/Metamaps/Views/ChatView.js index 7574de50..0024a623 100644 --- a/frontend/src/Metamaps/Views/ChatView.js +++ b/frontend/src/Metamaps/Views/ChatView.js @@ -49,7 +49,6 @@ const ChatView = { $('#' + ChatView.domId).hide() }, render: () => { - return if (!Active.Map) return const self = ChatView self.mapChat = ReactDOM.render(React.createElement(MapChat, { diff --git a/frontend/src/Metamaps/Views/index.js b/frontend/src/Metamaps/Views/index.js index 6badc098..0f7cf566 100644 --- a/frontend/src/Metamaps/Views/index.js +++ b/frontend/src/Metamaps/Views/index.js @@ -11,7 +11,6 @@ const Views = { init: (serverData) => { $(document).on(JUNTO_UPDATED, () => ExploreMaps.render()) ChatView.init([serverData['sounds/MM_sounds.mp3'], serverData['sounds/MM_sounds.ogg']]) - }, ExploreMaps, ChatView,