Commit 7c65e0a2 authored by Téo Vasseur's avatar Téo Vasseur

js : rename View to vmi.View

parent 4cac6d3a
......@@ -3,7 +3,7 @@ var vmi = {};
vmi.views = [];
vmi.selectedView;
function View(id, parentId, classes) {
vmi.View = function(id, parentId, classes) {
this.parentId = parentId;
this.id = id;
vmi.views.push(this);
......
function Flex(id, parentId) {
View.call(this, id, parentId, "flex");
vmi.View.call(this, id, parentId, "flex");
}
function Solid1(id, parentId) {
View.call(this, id, parentId, "solid1");
vmi.View.call(this, id, parentId, "solid1");
}
function Solid2(id, parentId) {
View.call(this, id, parentId, "solid2");
vmi.View.call(this, id, parentId, "solid2");
}
function Heavy(id, parentId) {
View.call(this, id, parentId, "heavy");
vmi.View.call(this, id, parentId, "heavy");
for (var i = 0 ; i < 10000 ; i++) this.node.appendChild(document.createElement('span'));
}
......
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