Commit 4897b553 authored by Marc Duez's avatar Marc Duez
Browse files

model.js : rename resetClusters/restoreClusters function

parent 2688bdae
......@@ -138,8 +138,8 @@
<div class="menu" onmouseover="showSelector('clusterSelector');" > cluster
<div id="clusterSelector" class="selector"><div>
<a class="buttonSelector" onclick="m.resetClones();">reset all clusters</a>
<a class="buttonSelector" onclick="m.restoreClones();">user</a>
<a class="buttonSelector" onclick="m.resetClusters();">reset all clusters</a>
<a class="buttonSelector" onclick="m.restoreClusters();">user</a>
<a class="buttonSelector" onclick="m.clusterBy(function(id){return m.clone(id).getV()});">V gene + allele</a>
<a class="buttonSelector" onclick="m.clusterBy(function(id){return m.clone(id).getJ()});">J gene + allele</a>
<!-- <a class="buttonSelector" onclick="m.clusterBy('cluster')">DBSCAN algorithm</a> -->
......
......@@ -1239,7 +1239,7 @@ Model.prototype = {
/*
*
* */
resetClones: function () {
resetClusters: function () {
//reset cluster
this.cluster_key = ""
......@@ -1253,7 +1253,7 @@ Model.prototype = {
/*
*
* */
restoreClones: function () {
restoreClusters: function () {
this.cluster_key = ""
if ( typeof this.clusters_copy != 'undefined'){
this.clusters = this.clusters_copy
......
......@@ -361,7 +361,7 @@ ScatterPlot.prototype = {
* -> Else, configuration by default of the engine (see 'init_motor')
* */
reinit_motor: function () {
this.m.resetClones();
this.m.resetClusters();
if (!this.reinit) {
//The configuration of the engine is active
this.reinit = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment