Skip to content
Snippets Groups Projects
Commit 06c00235 authored by mcmlxxix's avatar mcmlxxix
Browse files

fixed bug in frame.clear()... i hope

parent 745b2cde
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ function Frame(x,y,width,height,attr,parent) { ...@@ -129,7 +129,7 @@ function Frame(x,y,width,height,attr,parent) {
height:undefined, height:undefined,
attr:undefined, attr:undefined,
display:undefined, display:undefined,
data:[[]], data:[],
open:false, open:false,
ctrl_a:false, ctrl_a:false,
curr_attr:undefined, curr_attr:undefined,
...@@ -826,6 +826,8 @@ function Frame(x,y,width,height,attr,parent) { ...@@ -826,6 +826,8 @@ function Frame(x,y,width,height,attr,parent) {
if(attr == undefined) if(attr == undefined)
attr = this.attr; attr = this.attr;
for(var y=0;y<properties.data.length;y++) { for(var y=0;y<properties.data.length;y++) {
if(!properties.data[y])
continue;
for(var x=0;x<properties.data[y].length;x++) { for(var x=0;x<properties.data[y].length;x++) {
if(properties.data[y][x]) { if(properties.data[y][x]) {
properties.data[y][x].ch = undefined; properties.data[y][x].ch = undefined;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment