Commit 747eb179 authored by Marc Duez's avatar Marc Duez

model.js : reset function (it seems working ...maybe)

parent 8846c3ca
......@@ -270,6 +270,7 @@ Database.prototype = {
url: self.db_adress + "result" + arg,
success: function (result) {
json = jQuery.parseJSON(result)
m.reset();
m.parseJsonData(json, 50)
.loadGermline();
m.initClones()
......
......@@ -55,33 +55,40 @@ VIDJIL_JSON_VERSION = '2014.02'
* */
function Model() {
console.log("creation Model")
this.analysis = {
custom: [],
cluster: [],
date: []
};
this.t = 0;
this.norm = false;
this.focus = -1;
this.colorMethod = "Tag";
this.view = [];
this.mapID = {};
this.top = 10;
this.precision = 1;
this.time_order = [];
this.notation_type = "percent"
this.normalization = {
"A" : [],
"B" : 0,
"id" : 0
}
this.reset()
this.checkBrowser()
}
Model.prototype = {
reset: function () {
this.analysis = {
custom: [],
cluster: [],
date: []
};
this.t = 0;
this.norm = false;
this.focus = -1;
this.colorMethod = "Tag";
this.mapID = {};
this.top = 10;
this.precision = 1;
this.time = [];
this.time_order = [];
this.clones = [];
this.windows = [];
this.germline = {};
this.notation_type = "percent"
this.normalization = {
"A" : [],
"B" : 0,
"id" : 0
}
},
/* load the selected data/analysis file in the model
......@@ -643,7 +650,6 @@ Model.prototype = {
this.initClones();
},
/* give a new custom name to a clone
*
* */
......
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