Commit 5dfccbae authored by Marc Duez's avatar Marc Duez
Browse files

model.js : use self reference

parent f5fa8215
......@@ -41,6 +41,7 @@ VIDJIL_JSON_VERSION = '2014.09';
* @constructor
* */
function Model() {
var self=this;
console.log("creation Model")
for (f in Model_loader.prototype) {
......@@ -51,7 +52,7 @@ function Model() {
this.checkBrowser();
this.germlineList = new GermlineList()
this.build();
window.onresize = function () { m.resize(); };
window.onresize = function () { self.resize(); };
this.start()
......
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