From 06c0023553ba947cd0df3491f46bd87a19ee6ad0 Mon Sep 17 00:00:00 2001 From: mcmlxxix <> Date: Tue, 5 Mar 2013 18:44:07 +0000 Subject: [PATCH] fixed bug in frame.clear()... i hope --- exec/load/frame.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exec/load/frame.js b/exec/load/frame.js index c8e6834b38..037513f581 100644 --- a/exec/load/frame.js +++ b/exec/load/frame.js @@ -129,7 +129,7 @@ function Frame(x,y,width,height,attr,parent) { height:undefined, attr:undefined, display:undefined, - data:[[]], + data:[], open:false, ctrl_a:false, curr_attr:undefined, @@ -826,6 +826,8 @@ function Frame(x,y,width,height,attr,parent) { if(attr == undefined) attr = this.attr; for(var y=0;y<properties.data.length;y++) { + if(!properties.data[y]) + continue; for(var x=0;x<properties.data[y].length;x++) { if(properties.data[y][x]) { properties.data[y][x].ch = undefined; -- GitLab