Opened 16 years ago

Closed 15 years ago

#777 closed defect (wontfix)

Dojo not thread safe

Reported by: [email protected] Owned by: alex
Priority: high Milestone: 0.9
Component: lfx Version: 0.3
Keywords: Cc:
Blocked By: Blocking:



unless I use the API in an incorrect way (which would mean the demo also use the API incorrectly..), it looks like there is a thread safe problem with animations...

consider the following code : function flashElementEventHandler(evt)


elementName ="id"); fadeOutAnim = dojo.lfx.html.fadeOut(elementName, 250); dojo.event.connect(fadeOutAnim, "onEnd", function(e) {

fadeInAnim = dojo.lfx.html.fadeIn(elementName, 250);;



and this function would be registed as events for a few items : dojo.event.connect(dojo.byId('header-link-home'), 'onmouseover', flashElementEventHandler);

dojo.event.connect(dojo.byId('header-link-help'), 'onmouseover', flashElementEventHandler); dojo.event.connect(dojo.byId('header-link-screenshots'), 'onmouseover', flashElementEventHandler);

when you onMouseOver quickly over a few of these items, the animation on the first item stops to let the 2nd item animate itself...

So, my first (beginner) guess is that there is a thread safe problem, but it may be somethign completly unrelated, since I haven't looked at dojo code...

Change History (4)

comment:1 Changed 16 years ago by dylan

Component: GeneralEffects
Milestone: 0.4
Owner: changed from anonymous to Bryan Forbes

not sure if we have a reasonable answer here...

comment:2 Changed 16 years ago by dylan

Milestone: 0.40.5

comment:3 Changed 15 years ago by alex

Owner: changed from Bryan Forbes to alex
Status: newassigned

comment:4 Changed 15 years ago by alex

Resolution: wontfix
Status: assignedclosed

this is not a thread safety issue, you're just invoking multiple animations at once. Marking "wontfix"

Note: See TracTickets for help on using tickets.