From 89130382b499504868ce65cb3b18e32c8dd0ba96 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sun, 14 Jul 2019 18:37:45 +0000 Subject: [PATCH] Split out Architype class from loading code --- Architype.js | 10 ---------- architype.js | 10 ++++++++++ index.html | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 architype.js diff --git a/Architype.js b/Architype.js index c0e0ada..c0beed8 100644 --- a/Architype.js +++ b/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 { - - - -new Architype(document.getElementById('architype')); diff --git a/architype.js b/architype.js new file mode 100644 index 0000000..3f49393 --- /dev/null +++ b/architype.js @@ -0,0 +1,10 @@ +'use strict'; + +addEventListener('error', (e) => { + console.log(e); +}); + + + + +new Architype(document.getElementById('architype')); diff --git a/index.html b/index.html index 1ae7615..7e833ef 100644 --- a/index.html +++ b/index.html @@ -18,6 +18,6 @@