Fixed loads of memory leaks and related issues.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3782 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-01-22 18:50:29 +00:00
parent d470d6c398
commit 0f03701043
5 changed files with 57 additions and 21 deletions

View File

@ -78,7 +78,6 @@ function edit() {
return;
}
closeStats();
gSplit = Split(['#editPane', '#viewPane'], {minSize: 0});
ensureLoaded([
@ -155,8 +154,6 @@ function trace() {
}
function stats() {
closeEditor();
gSplit = Split(['#statsPane', '#viewPane'], {minSize: 0});
document.getElementById("statsPane").style.display = 'flex';
}

View File

@ -19,6 +19,12 @@
<span id="login"></span>
</div>
<div id="content" class="hbox" style="flex: 1 1; width: 100%">
<div id="statsPane" class="vbox" style="display: none; flex 1 0 320px">
<div class="hbox">
<input type="button" id="closeStats" name="closeStats" value="Close" onclick="closeStats()">
</div>
<div id="graphs"></div>
</div>
<div id="editPane" class="vbox" style="display: none">
<div class="navigation">
<input type="button" id="closeEditor" name="closeEditor" value="Close" onclick="closeEditor()">
@ -43,12 +49,6 @@
</div>
</div>
</div>
<div id="statsPane" class="vbox" style="display: none">
<div class="hbox">
<input type="button" id="closeStats" name="closeStats" value="Close" onclick="closeStats()">
</div>
<div id="graphs"></div>
</div>
<div id="viewPane" class="vbox" style="flex: 1 0 50%; overflow: auto">
<iframe id="document" sandbox="allow-forms allow-scripts allow-top-navigation allow-modals" style="width: 100%; height: 100%; border: 0"></iframe>
</div>