add some logging to see whether this is source of many renders

This commit is contained in:
Connor Turland 2017-03-16 11:41:18 -04:00
parent 2bd27d7ee5
commit 4882e9dac3

View file

@ -101,16 +101,19 @@ 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()