From 8cceb8edd8c6f72eb33243728ccab6f2e2b4e73c Mon Sep 17 00:00:00 2001 From: Nick Fernandez Date: Fri, 16 Dec 2016 15:09:28 -0500 Subject: [PATCH] fixed eslint errors --- clustergrammer.js | 23 +++++------------------ src/config/set_defaults.js | 2 -- src/dendrogram/click_filter_cats.js | 5 ----- src/network/filter_viz_using_names.js | 5 ----- src/sidebar/make_icons.js | 11 ++++++----- src/update/update_viz_with_network.js | 2 -- 6 files changed, 11 insertions(+), 37 deletions(-) diff --git a/clustergrammer.js b/clustergrammer.js index 1de0e4de..e07c354d 100644 --- a/clustergrammer.js +++ b/clustergrammer.js @@ -497,8 +497,6 @@ var Clustergrammer = module.exports = function set_defaults() { - console.log('set_defaults'); - var defaults = { // Label options row_label_scale: 1, @@ -7098,7 +7096,6 @@ var Clustergrammer = var inst_col_nodes = cgm.params.network_data.col_nodes; // run filtering using found names - console.log('filter with cat'); cgm.filter_viz_using_names(filter_names); // save backup of the inst_view @@ -7116,10 +7113,6 @@ var Clustergrammer = filter_names = cgm.params.cat_filter[inst_rc]; // reset filter - console.log('reset filter with cat'); - - console.log(filter_names); - cgm.filter_viz_using_names(filter_names); // must set this after filtering has been run cgm.params.cat_filter[inst_rc] = false; @@ -8091,8 +8084,6 @@ var Clustergrammer = module.exports = function update_viz_with_network(cgm, new_network_data) { - console.log('update viz '); - var inst_group_level = cgm.params.group_level; var inst_crop_fitler = cgm.params.crop_filter_nodes; @@ -9911,7 +9902,6 @@ var Clustergrammer = var new_nodes = {}; var found_nodes; - console.log(names); _.each(['row', 'col'], function (inst_rc) { // I'm requiring view 0 @@ -9931,10 +9921,6 @@ var Clustergrammer = new_nodes[inst_rc + '_nodes'] = found_nodes; }); - console.log('new nodes'); - console.log(new_nodes); - // new_nodes.col_nodes = params.network_data.col_nodes; - var new_network_data = filter_network_using_new_nodes(cgm.config, new_nodes); // takes entire cgm object @@ -12503,8 +12489,8 @@ var Clustergrammer = var is_undo = d3.select(this).classed('fa-undo'); - console.log('is crop ' + String(is_crop)); - console.log('is undo ' + String(is_undo)); + // console.log('is crop '+ String(is_crop)) + // console.log('is undo '+ String(is_undo)) // press crop button if (is_crop) { @@ -12525,8 +12511,9 @@ var Clustergrammer = d3.select(params.root + ' .crop_button').style('color', '#337ab7').classed('fa-crop', true).classed('fa-undo', false); - console.log('****** reset to previous state'); - console.log(cgm.params.crop_filter_nodes); + // console.log('****** reset to previous state') + // console.log(cgm.params.crop_filter_nodes) + // cgm.filter_viz_using_names(cgm.params.crop_filter_nodes); cgm.filter_viz_using_nodes(cgm.params.crop_filter_nodes); } diff --git a/src/config/set_defaults.js b/src/config/set_defaults.js index 5075fce1..0fe484de 100755 --- a/src/config/set_defaults.js +++ b/src/config/set_defaults.js @@ -1,7 +1,5 @@ module.exports = function set_defaults(){ -console.log('set_defaults') - var defaults = { // Label options row_label_scale: 1, diff --git a/src/dendrogram/click_filter_cats.js b/src/dendrogram/click_filter_cats.js index b2891a16..ef9c25e0 100644 --- a/src/dendrogram/click_filter_cats.js +++ b/src/dendrogram/click_filter_cats.js @@ -29,7 +29,6 @@ module.exports = function click_filter_cats(cgm, inst_data, inst_selection, inst var inst_col_nodes = cgm.params.network_data.col_nodes; // run filtering using found names - console.log('filter with cat') cgm.filter_viz_using_names(filter_names); // save backup of the inst_view @@ -48,10 +47,6 @@ module.exports = function click_filter_cats(cgm, inst_data, inst_selection, inst filter_names = cgm.params.cat_filter[inst_rc]; // reset filter - console.log('reset filter with cat') - - console.log(filter_names) - cgm.filter_viz_using_names(filter_names); // must set this after filtering has been run cgm.params.cat_filter[inst_rc] = false; diff --git a/src/network/filter_viz_using_names.js b/src/network/filter_viz_using_names.js index 95b63bd0..d16ae14b 100644 --- a/src/network/filter_viz_using_names.js +++ b/src/network/filter_viz_using_names.js @@ -17,7 +17,6 @@ module.exports = function filter_viz_using_names(names, external_cgm = false){ var new_nodes = {}; var found_nodes; - console.log(names) _.each(['row', 'col'], function(inst_rc){ // I'm requiring view 0 @@ -39,10 +38,6 @@ module.exports = function filter_viz_using_names(names, external_cgm = false){ }); - console.log('new nodes') - console.log(new_nodes) - // new_nodes.col_nodes = params.network_data.col_nodes; - var new_network_data = filter_network_using_new_nodes(cgm.config, new_nodes); // takes entire cgm object diff --git a/src/sidebar/make_icons.js b/src/sidebar/make_icons.js index 430d5280..24219784 100755 --- a/src/sidebar/make_icons.js +++ b/src/sidebar/make_icons.js @@ -108,14 +108,14 @@ module.exports = function make_icons(cgm, sidebar){ var is_undo = d3.select(this) .classed('fa-undo'); - console.log('is crop '+ String(is_crop)) - console.log('is undo '+ String(is_undo)) + // console.log('is crop '+ String(is_crop)) + // console.log('is undo '+ String(is_undo)) // press crop button if (is_crop){ // keep list of names to return to state - cgm.params.crop_filter_nodes = {} + cgm.params.crop_filter_nodes = {}; cgm.params.crop_filter_nodes.row_nodes = cgm.params.network_data.row_nodes; cgm.params.crop_filter_nodes.col_nodes = cgm.params.network_data.col_nodes; @@ -135,8 +135,9 @@ module.exports = function make_icons(cgm, sidebar){ .classed('fa-undo', false); - console.log('****** reset to previous state') - console.log(cgm.params.crop_filter_nodes) + // console.log('****** reset to previous state') + // console.log(cgm.params.crop_filter_nodes) + // cgm.filter_viz_using_names(cgm.params.crop_filter_nodes); cgm.filter_viz_using_nodes(cgm.params.crop_filter_nodes); diff --git a/src/update/update_viz_with_network.js b/src/update/update_viz_with_network.js index 50921c0e..93239709 100755 --- a/src/update/update_viz_with_network.js +++ b/src/update/update_viz_with_network.js @@ -16,8 +16,6 @@ var run_zoom = require('../zoom/run_zoom'); module.exports = function update_viz_with_network(cgm, new_network_data){ - console.log('update viz ') - var inst_group_level = cgm.params.group_level; var inst_crop_fitler = cgm.params.crop_filter_nodes;