What to do with cross frame references to objects that do no longer exist?
Inside the page that publishes the frameset, index.php, there is a javascript blinking object, ojs.blinker, that alternates a html element its classname, between two css rule names, every 500ms.
In the content page this object is brought within scope with
var ojs = top.ojs;
and elements can be pushed for blinking like this:
<div class="cssrule0" cls0="cssrule0" cls1="cssrule1" onclick="ojs.blinker.push(this)">some content</div>
Remarks:
When the content page refreshes, that object is ofcourse rebuild.
The reference to the previous object inside ojs.blinker still exists, and can be refered to without error!, but doesn't do anything.
Inside ojs.blinker difference can be detected in obj its parentElement which offers some obj state detection...
obj.parentElement=[Object] and
obj.parentElement=null
This is where I remove obj from the array for the 500 ms blinker cycle.
Question:
What to do with obj after this?
Should I delete it?
Is this a memory leak?
Or does it belong to any history object now?
Inside the page that publishes the frameset, index.php, there is a javascript blinking object, ojs.blinker, that alternates a html element its classname, between two css rule names, every 500ms.
In the content page this object is brought within scope with
var ojs = top.ojs;
and elements can be pushed for blinking like this:
<div class="cssrule0" cls0="cssrule0" cls1="cssrule1" onclick="ojs.blinker.push(this)">some content</div>
Remarks:
When the content page refreshes, that object is ofcourse rebuild.
The reference to the previous object inside ojs.blinker still exists, and can be refered to without error!, but doesn't do anything.
Inside ojs.blinker difference can be detected in obj its parentElement which offers some obj state detection...
obj.parentElement=[Object] and
obj.parentElement=null
This is where I remove obj from the array for the 500 ms blinker cycle.
Question:
What to do with obj after this?
Should I delete it?
Is this a memory leak?
Or does it belong to any history object now?