Commit d4bfcda2 authored by Téo Vasseur's avatar Téo Vasseur
Browse files

builder.js : use View.call

parent 8161b869
...@@ -23,8 +23,7 @@ ...@@ -23,8 +23,7 @@
function Builder(model, database) { function Builder(model, database) {
if (typeof model != "undefined"){ if (typeof model != "undefined"){
this.m = model; //Model utilisé View.call(this, model);
this.m.view.push(this); //synchronisation au Model
} }
if(typeof database != 'undefined') { if(typeof database != '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