diff options
Diffstat (limited to 'js')
| -rw-r--r-- | js/lex.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -14,6 +14,8 @@ function Lex (x,y) { this.focused = false } Lex.prototype.build = function(){ + if (isNaN(this.bg) || this.bg == Infinity || this.bg == -Infinity) this.bg = colors.black + if (isNaN(this.fg) || this.fg == Infinity || this.fg == -Infinity) this.fg = colors.black this.span.className = this.css() this.span.innerHTML = this.html() } |
