Converted image manager into vue component

This commit is contained in:
Dan Brown
2017-08-09 21:33:00 +01:00
parent a59d73de7b
commit ab07f7df6c
11 changed files with 287 additions and 307 deletions

View File

@ -21,6 +21,8 @@ for (let i = 0, len = componentNames.length; i < len; i++) {
if (typeof window.components[name] === "undefined") window.components[name] = [];
for (let j = 0, jLen = elems.length; j < jLen; j++) {
let instance = new component(elems[j]);
if (typeof elems[j].components === 'undefined') elems[j].components = {};
elems[j].components[name] = instance;
window.components[name].push(instance);
}
}