Split out Architype class from loading code

This commit is contained in:
Ian Gulliver
2019-07-14 18:37:45 +00:00
parent feb33b9922
commit 89130382b4
3 changed files with 11 additions and 11 deletions

View File

@@ -1,9 +1,3 @@
'use strict';
addEventListener('error', (e) => {
console.log(e);
});
class Architype {
constructor(container) {
this.container_ = container;
@@ -295,7 +289,3 @@ class Architype {
<!--# include file="Editor.js" -->
<!--# include file="Grid.js" -->
<!--# include file="IdSource.js" -->
<!--# include file="utils.js" -->
new Architype(document.getElementById('architype'));

10
architype.js Normal file
View File

@@ -0,0 +1,10 @@
'use strict';
addEventListener('error', (e) => {
console.log(e);
});
<!--# include file="Architype.js" -->
<!--# include file="utils.js" -->
new Architype(document.getElementById('architype'));

View File

@@ -18,6 +18,6 @@
<div id=architype></div>
</ul>
<script>
<!--# include file="Architype.js" -->
<!--# include file="architype.js" -->
</script>
</body>