Skip to content
Snippets Groups Projects
Commit 0703079c authored by mcmlxxix's avatar mcmlxxix
Browse files

don't recreate Canvas() object on every frame.open() call... may cure a rare...

don't recreate Canvas() object on every frame.open() call... may cure a rare case of memory consumption, or your lungs may continue to bleed.. until you ultimately die in agony.
parent ce426804
No related branches found
No related tags found
No related merge requests found
......@@ -376,10 +376,13 @@ function Frame(x,y,width,height,attr,parent) {
}
}
this.open = function() {
properties.display.open(this);
properties.open = true;
for each(var c in relations.child)
if(!properties.open) {
properties.display.open(this);
properties.open = true;
}
for each(var c in relations.child) {
c.open();
}
}
this.refresh = function() {
if(properties.open) {
......@@ -391,8 +394,10 @@ function Frame(x,y,width,height,attr,parent) {
this.close = function() {
for each(var c in relations.child)
c.close();
properties.display.close(this);
properties.open = false;
if(properties.open) {
properties.display.close(this);
properties.open = false;
}
}
this.delete = function(id) {
if(id == undefined) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment