summaryrefslogtreecommitdiff
path: root/js/lex.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lex.js')
-rw-r--r--js/lex.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/js/lex.js b/js/lex.js
index 086fc90..e98538c 100644
--- a/js/lex.js
+++ b/js/lex.js
@@ -74,6 +74,11 @@ Lex.prototype.blur = function(){
this.span.classList.remove('focused')
focused = null
}
+Lex.prototype.demolish = function(){
+ this.span.parentNode.removeChild(this.span)
+ this.span = null
+}
+
Lex.prototype.key = function(char, keyCode) {
console.log(keyCode, this.y, this.x)
switch (keyCode) {
@@ -110,7 +115,3 @@ Lex.prototype.key = function(char, keyCode) {
}
}
}
-Lex.prototype.demolish = function(){
- this.span.parentNode.removeChild(this.span)
- this.span = null
-}