From c4d0bf8ce4065bd300bac160dfc8b68745bdcbc6 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Tue, 19 Sep 2017 10:02:05 -0400 Subject: [PATCH] clean up jquery ref and strings --- frontend/src/Metamaps/Topic.js | 4 ++-- frontend/src/Metamaps/Views/ContextMenu.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/Metamaps/Topic.js b/frontend/src/Metamaps/Topic.js index 1a8a7414..1b1abe88 100644 --- a/frontend/src/Metamaps/Topic.js +++ b/frontend/src/Metamaps/Topic.js @@ -104,7 +104,7 @@ const Topic = { fetchSiblings: function(nodes, metacodeId) { var self = this - var node = $.isArray(nodes) ? nodes[0] : nodes + var node = Array.isArray(nodes) ? nodes[0] : nodes var topics = DataModel.Topics.map(function(t) { return t.id }) var topicsString = topics.join() @@ -156,7 +156,7 @@ const Topic = { } }) }) - if ($.isArray(nodes) && nodes.length > 1) { + if (Array.isArray(nodes) && nodes.length > 1) { self.fetchSiblings(nodes.slice(1), metacodeId) } } diff --git a/frontend/src/Metamaps/Views/ContextMenu.js b/frontend/src/Metamaps/Views/ContextMenu.js index 0eae9b88..3aa9784a 100644 --- a/frontend/src/Metamaps/Views/ContextMenu.js +++ b/frontend/src/Metamaps/Views/ContextMenu.js @@ -52,7 +52,7 @@ const ContextMenu = { }, popoutTopic: (render, id) => { ContextMenu.reset(render) - const win = window.open('/topics/' + id, '_blank') + const win = window.open(`/topics/${id}`, '_blank') win.focus() }, updatePermissions: (render, permission) => {