clean up unused vars and logs

This commit is contained in:
Connor Turland 2017-03-17 10:25:08 -04:00
parent c8f6374ac8
commit eee1febbf9
5 changed files with 0 additions and 8 deletions

View file

@ -11,7 +11,6 @@ import Settings from './Settings'
import Visualize from './Visualize' import Visualize from './Visualize'
const Control = { const Control = {
init: function() {},
selectNode: function(node, e) { selectNode: function(node, e) {
var filtered = node.getData('alpha') === 0 var filtered = node.getData('alpha') === 0

View file

@ -101,19 +101,16 @@ const DataModel = {
}, },
attachCollectionEvents: function() { attachCollectionEvents: function() {
DataModel.Topics.on('add remove', function(topic) { DataModel.Topics.on('add remove', function(topic) {
console.log('updating infobox and filters due to topic add or remove')
InfoBox.updateNumbers() InfoBox.updateNumbers()
Filter.checkMetacodes() Filter.checkMetacodes()
Filter.checkMappers() Filter.checkMappers()
}) })
DataModel.Synapses.on('add remove', function(synapse) { DataModel.Synapses.on('add remove', function(synapse) {
console.log('updating infobox and filters due to synapse add or remove')
InfoBox.updateNumbers() InfoBox.updateNumbers()
Filter.checkSynapses() Filter.checkSynapses()
Filter.checkMappers() Filter.checkMappers()
}) })
DataModel.Mappings.on('add remove', function(mapping) { DataModel.Mappings.on('add remove', function(mapping) {
console.log('updating infobox and filters due to mapping add or remove')
InfoBox.updateNumbers() InfoBox.updateNumbers()
Filter.checkSynapses() Filter.checkSynapses()
Filter.checkMetacodes() Filter.checkMetacodes()

View file

@ -25,8 +25,6 @@ const Filter = {
mappers: [], mappers: [],
synapses: [] synapses: []
}, },
isOpen: false,
changing: false,
reset: function() { reset: function() {
var self = Filter var self = Filter
self.filters.metacodes = [] self.filters.metacodes = []

View file

@ -91,7 +91,6 @@ const ReactApp = {
const self = ReactApp const self = ReactApp
const createElement = (Component, props) => <Component {...props} {...self.getProps()}/> const createElement = (Component, props) => <Component {...props} {...self.getProps()}/>
const app = <Router createElement={createElement} routes={routes} history={browserHistory} onUpdate={self.handleUpdate} /> const app = <Router createElement={createElement} routes={routes} history={browserHistory} onUpdate={self.handleUpdate} />
console.log('rendering')
ReactDOM.render(app, document.getElementById('react-app')) ReactDOM.render(app, document.getElementById('react-app'))
}, },
getProps: function() { getProps: function() {

View file

@ -13,7 +13,6 @@ const ChatView = {
messages: new Backbone.Collection(), messages: new Backbone.Collection(),
conversationLive: false, conversationLive: false,
isParticipating: false, isParticipating: false,
domId: 'chat-box-wrapper',
init: function(urls) { init: function(urls) {
const self = ChatView const self = ChatView
self.sound = new Howl({ self.sound = new Howl({