Commit 8affd4ac authored by Téo Vasseur's avatar Téo Vasseur

js : add vmi.View calls in view constructors

parent 8424946f
......@@ -75,6 +75,7 @@
function Graph(id, model, database) {
//
View.call(this, model);
vmi.View.call(this, id, "B", "graph");
this.id = id;
this.resizeW = 1; //coeff d'agrandissement/réduction largeur
......
......@@ -23,6 +23,7 @@
function Info(id, model, builder) {
View.call(this, model);
vmi.View.call(this, id, "A", "info");
this.id = id;
this.builder = builder;
}
......
......@@ -46,6 +46,7 @@ function List(id_list, id_data, model, database) {
var self=this;
View.call(this, model);
vmi.View.call(this, id_list, "A", "list");
this.db = database;
this.id = id_list; //ID de la div contenant la liste
......
......@@ -36,6 +36,7 @@ function ScatterPlot(id, model, database) {
var self = this;
View.call(this, model);
vmi.View.call(this, id, "B", "scatterplot");
this.db = database;
this.id = id; //ID of the scatterPlot div
......
......@@ -48,6 +48,7 @@ SEGMENT_KEYS = ["4", "4a", "4b"]
function Segment(id, model, database) {
View.call(this, model);
vmi.View.call(this, id, "C", "seg");
this.db = database;
if (typeof config != 'undefined') {
......
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