Just abuse classes for grid linkage

This commit is contained in:
Ian Gulliver
2019-07-13 22:30:37 +00:00
parent 405b170c6a
commit a4630ba92a
5 changed files with 17 additions and 21 deletions

View File

@@ -15,15 +15,13 @@ class Architype {
document.addEventListener('keydown', (e) => { this.onKeyDown(e); });
let gridElementsById = new Map();
this.editorElem_ = document.createElement('ul');
this.container_.appendChild(this.editorElem_);
this.editor_ = new Editor(this.editorElem_, gridElementsById);
this.editor_ = new Editor(this.editorElem_);
this.gridElem_ = document.createElement('div');
this.container_.appendChild(this.gridElem_);
this.grid_ = new Grid(this.gridElem_, gridElementsById);
this.grid_ = new Grid(this.gridElem_);
this.generation_ = 0;
this.renderGeneration_ = -1;