From eee1febbf9b02ceb6912a4b9eabd689e8d8ec63a Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Fri, 17 Mar 2017 10:25:08 -0400 Subject: [PATCH] clean up unused vars and logs --- frontend/src/Metamaps/Control.js | 1 - frontend/src/Metamaps/DataModel/index.js | 3 --- frontend/src/Metamaps/Filter.js | 2 -- frontend/src/Metamaps/GlobalUI/ReactApp.js | 1 - frontend/src/Metamaps/Views/ChatView.js | 1 - 5 files changed, 8 deletions(-) diff --git a/frontend/src/Metamaps/Control.js b/frontend/src/Metamaps/Control.js index 6be7c951..aa4790ff 100644 --- a/frontend/src/Metamaps/Control.js +++ b/frontend/src/Metamaps/Control.js @@ -11,7 +11,6 @@ import Settings from './Settings' import Visualize from './Visualize' const Control = { - init: function() {}, selectNode: function(node, e) { var filtered = node.getData('alpha') === 0 diff --git a/frontend/src/Metamaps/DataModel/index.js b/frontend/src/Metamaps/DataModel/index.js index ce6c975d..272f1717 100644 --- a/frontend/src/Metamaps/DataModel/index.js +++ b/frontend/src/Metamaps/DataModel/index.js @@ -101,19 +101,16 @@ const DataModel = { }, attachCollectionEvents: function() { DataModel.Topics.on('add remove', function(topic) { - console.log('updating infobox and filters due to topic add or remove') InfoBox.updateNumbers() Filter.checkMetacodes() Filter.checkMappers() }) DataModel.Synapses.on('add remove', function(synapse) { - console.log('updating infobox and filters due to synapse add or remove') InfoBox.updateNumbers() Filter.checkSynapses() Filter.checkMappers() }) DataModel.Mappings.on('add remove', function(mapping) { - console.log('updating infobox and filters due to mapping add or remove') InfoBox.updateNumbers() Filter.checkSynapses() Filter.checkMetacodes() diff --git a/frontend/src/Metamaps/Filter.js b/frontend/src/Metamaps/Filter.js index 360867b2..7744a759 100644 --- a/frontend/src/Metamaps/Filter.js +++ b/frontend/src/Metamaps/Filter.js @@ -25,8 +25,6 @@ const Filter = { mappers: [], synapses: [] }, - isOpen: false, - changing: false, reset: function() { var self = Filter self.filters.metacodes = [] diff --git a/frontend/src/Metamaps/GlobalUI/ReactApp.js b/frontend/src/Metamaps/GlobalUI/ReactApp.js index 7f560169..b2c5b7eb 100644 --- a/frontend/src/Metamaps/GlobalUI/ReactApp.js +++ b/frontend/src/Metamaps/GlobalUI/ReactApp.js @@ -91,7 +91,6 @@ const ReactApp = { const self = ReactApp const createElement = (Component, props) => const app = - console.log('rendering') ReactDOM.render(app, document.getElementById('react-app')) }, getProps: function() { diff --git a/frontend/src/Metamaps/Views/ChatView.js b/frontend/src/Metamaps/Views/ChatView.js index b2220ab0..f058d35a 100644 --- a/frontend/src/Metamaps/Views/ChatView.js +++ b/frontend/src/Metamaps/Views/ChatView.js @@ -13,7 +13,6 @@ const ChatView = { messages: new Backbone.Collection(), conversationLive: false, isParticipating: false, - domId: 'chat-box-wrapper', init: function(urls) { const self = ChatView self.sound = new Howl({