Bugs item #411210, was updated on 2001-03-25 13:14
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105757&aid=411210&group_id=5757
Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Claude Schn�egans (schnee)
Assigned to: Nobody/Anonymous (nobody)
Summary: Recycled layers are dirty
Initial Comment:
There is a problem with Netscape when deleting and creating a layer inside an event
handler.
It looks like the deleted layers is recycled, but doing so will retrigger the event we
were in and
make it triggered twice.
Changing the line 44 in dynLayer.js for
if (recycled && recycled.length>0 && false)
seems to solve the problem, but it deactvated the layer recycling.
May be some cleaning should be done on recycled layers before they are assigned again,
but I could
not figure which one.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-04-02 18:11
Message:
Logged In: NO
(I still can't log in)
After extensive testing, I have found no evidence that
Events are retained by recycled layers.
I would very much like to close this bug.
I would indeed close this bug, but I CAN'T LOG IN..
ever have on of those days?
Anyways, to confirm: ther is NO evidence of recycled layers
retaining Events.
Topic Closed.
----------------------------------------------------------------------
Comment By: Claude Schn�egans (schnee)
Date: 2001-03-28 19:42
Message:
Logged In: YES
user_id=9850
>>Please provide a more detailed description of the
bug as well as an example that demonstrates the behavior.
Sorry, but this would take too much work to reproduce the problem.
My application is using several layers, each of them contains an image and a text
sub-layer. In some
occasions, the sub-layer is deleted, and the parent layer is regenerated. Under
Netscape, deleted layers are
kept in some temporary recycling buffer. When a new layer is created, the previous
deleted layer is recycled.
The problem is that each time a deleted layer is recycled, the whole document area is
starting to get event
it never requested, events that used to belong to the former deleted sub-layer. I
tried to delete all event
handlers before killing the layer and sending it in the recycle bin, but it did not
help.
As I said in the first message, I completely disconnected the recycling process, and
now it works fine.
So my conclusion is that when a layer is deleted, the event associated with it are
still alive and sleeping
some where. But when the layer is "re-born", these events are let flying.
----------------------------------------------------------------------
Comment By: Robert Rainwater (rainwater)
Date: 2001-03-28 16:28
Message:
Logged In: YES
user_id=16618
The details of the bug were not sufficient enough in order to
duplicate. Please provide a more detailed description of the
bug as well as an example that demonstrates the behavior.
----------------------------------------------------------------------
Comment By: Claude Schn�egans (schnee)
Date: 2001-03-25 16:26
Message:
Logged In: YES
user_id=9850
>>will force it to always evaluate to false.
Of course, this was precisely what I intent to do, while not loosing the original code.
This way, I force the program to create a new layer instead of recycling an old one.
The recycled layer appears to be still active with previous events and this is
completely messing up the new
layer.
----------------------------------------------------------------------
Comment By: Michael Pemberton (mpember)
Date: 2001-03-25 15:29
Message:
Logged In: YES
user_id=172719
I'm not sure about what you were trying to do with the above line of code. It will
always result in not
running the required code. the "&& false" component will force it to always evaluate
to false.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105757&aid=411210&group_id=5757
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev