diff options
Diffstat (limited to 'js/lex.js')
| -rw-r--r-- | js/lex.js | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 -} |
