diff --git a/exec/load/frame.js b/exec/load/frame.js index be071d058be6265623e6d25c26e3ea2970bd2df9..1074c38d51ef297c23843cebd6e203ea4de814b7 100644 --- a/exec/load/frame.js +++ b/exec/load/frame.js @@ -927,17 +927,17 @@ Frame.prototype.clear = function (attr) { this.home(); this.invalidate(); } -Frame.prototype.erase(ch, attr) { +Frame.prototype.erase = function(ch, attr) { if(attr == undefined) attr = this.attr; var px = this.__position__.offset.x; var py = this.__position__.offset.y; for(var y = 0; y< this.height; y++) { - if(!this__properties.data[py + y]) { + if(!this.__properties__.data[py + y]) { continue; } - for(var x = 0; x<this.width: x++) { - if(!this__properties.data[py + y][px + x]) { + for(var x = 0; x<this.width; x++) { + if(!this.__properties__.data[py + y][px + x]) { continue; } if((this.__properties__.data[py + y][px + x].ch === undefined ||