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() {
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()