summaryrefslogtreecommitdiff
path: root/js/matrix.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/matrix.js')
-rw-r--r--js/matrix.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/matrix.js b/js/matrix.js
index b1d80f6..59bad86 100644
--- a/js/matrix.js
+++ b/js/matrix.js
@@ -39,7 +39,7 @@ Matrix.prototype.assign = function (mat) {
this.demolish()
this.w = mat.w
this.h = mat.h
- this.f = function(){}
+// this.f = function(){}
this.initialize(function(x,y){
var el = mat.getCell(x,y).clone()
el.build()
@@ -83,6 +83,9 @@ Matrix.prototype.focusLex = function(y,x){
Matrix.prototype.clear = function(){
this.forEach(function(lex,x,y){ lex.clear() })
}
+Matrix.prototype.erase = function(){
+ this.forEach(function(lex,x,y){ lex.erase() })
+}
Matrix.prototype.fill = function(fg, bg){
this.fg = fg
this.bg = bg