Opened 16 years ago
Closed 15 years ago
#777 closed defect (wontfix)
Dojo not thread safe
Reported by: | Owned by: | alex | |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | lfx | Version: | 0.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Hi,
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 = evt.target.getAttribute("id"); fadeOutAnim = dojo.lfx.html.fadeOut(elementName, 250); dojo.event.connect(fadeOutAnim, "onEnd", function(e) {
fadeInAnim = dojo.lfx.html.fadeIn(elementName, 250); fadeInAnim.play();
}); fadeOutAnim.play();
}
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
Component: | General → Effects |
---|---|
Milestone: | → 0.4 |
Owner: | changed from anonymous to Bryan Forbes |
comment:2 Changed 16 years ago by
Milestone: | 0.4 → 0.5 |
---|
comment:3 Changed 15 years ago by
Owner: | changed from Bryan Forbes to alex |
---|---|
Status: | new → assigned |
comment:4 Changed 15 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
this is not a thread safety issue, you're just invoking multiple animations at once. Marking "wontfix"
not sure if we have a reasonable answer here...