Split out Architype class from loading code
This commit is contained in:
10
Architype.js
10
Architype.js
@@ -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
10
architype.js
Normal 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'));
|
||||
@@ -18,6 +18,6 @@
|
||||
<div id=architype></div>
|
||||
</ul>
|
||||
<script>
|
||||
<!--# include file="Architype.js" -->
|
||||
<!--# include file="architype.js" -->
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user