Commit 094edde3e2d8383b31bd4f7d0b2b23750ce4cba0

Authored by Tomasz Bartosiak
1 parent aa996d50

czyszczenie pamięci o ramach

semantics/static/js/semantics_frames.js
... ... @@ -16,6 +16,7 @@ function selectedFrameId() {
16 16 function getFrames(frames_display){
17 17 var i, j;
18 18 lexical_units_num = [];
  19 + frame_content = [];
19 20 for (i = 0; i < frames_display.length; i++) {
20 21 lexical_units_num.push(frames_display[i].lexical_units);
21 22 lexical_units_frames[i] = [];
... ... @@ -227,6 +228,7 @@ function removeFrame(frame_id) {
227 228  
228 229 var connections = getConnected(frame_id);
229 230 removeFrameConnections(frame_id);
  231 + frame_content[frame_id] = null;
230 232  
231 233 frames_operations.push({operation: "remove_frame", id: frame_id, units: units, connections: connections});
232 234 }
... ...