From 4882e9dac3f1c6dd6fe84f80ecdfb88e9f7e8e3c Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Thu, 16 Mar 2017 11:41:18 -0400 Subject: [PATCH] add some logging to see whether this is source of many renders --- frontend/src/Metamaps/DataModel/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/Metamaps/DataModel/index.js b/frontend/src/Metamaps/DataModel/index.js index 272f1717..ce6c975d 100644 --- a/frontend/src/Metamaps/DataModel/index.js +++ b/frontend/src/Metamaps/DataModel/index.js @@ -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()