Commit 915498ea authored by HERBERT Ryan's avatar HERBERT Ryan
Browse files

main.js, builder.js add database to builder

parent 978d3eec
function Builder(model) {
function Builder(model, database) {
if (typeof model != "undefined"){
this.m = model; //Model utilisé
this.m.view.push(this); //synchronisation au Model
}
if(typeof database != 'undefined') {
this.db = database;
}
this.colorMethod = "";
this.width_left_container = $("#left-container")
.css("width")
......
/*
* This file is part of Vidjil <http://www.vidjil.org>,
/* This file is part of Vidjil <http://www.vidjil.org>,
* High-throughput Analysis of V(D)J Immune Repertoire.
* Copyright (C) 2013, 2014, 2015 by Bonsai bioinformatics
* at CRIStAL (UMR CNRS 9189, Université Lille) and Inria Lille
......@@ -81,7 +80,7 @@ var db = new Database(m);
* The builder completes some informations in the menu and provide some tools
* TODO replace with a menu and info view
*/
var builder = new Builder(m);
var builder = new Builder(m, db);
/* [WIP] Shortcut (optional)
......
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