Skip to content

Commit

Permalink
fixed eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cornhundred committed Dec 16, 2016
1 parent ffbc721 commit 8cceb8e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 37 deletions.
23 changes: 5 additions & 18 deletions clustergrammer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions src/config/set_defaults.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module.exports = function set_defaults(){

console.log('set_defaults')

var defaults = {
// Label options
row_label_scale: 1,
Expand Down
5 changes: 0 additions & 5 deletions src/dendrogram/click_filter_cats.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down
5 changes: 0 additions & 5 deletions src/network/filter_viz_using_names.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
11 changes: 6 additions & 5 deletions src/sidebar/make_icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);

Expand Down
2 changes: 0 additions & 2 deletions src/update/update_viz_with_network.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8cceb8e

Please sign in to comment.