Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#4586 closed defect (fixed) goes into an infinite loop when this.delay is > 0

Reported by: simonjb Owned by: anonymous
Priority: high Milestone: 1.0
Component: Core Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description contains the following statements:

var d = delay||this.delay;
if(d > 0){
	setTimeout(dojo.hitch(this, function(){, gotoStart); }), d);
	return this; // dojo._Animation

If this.delay is > 0 then the setTimeout() call will always happen and we will have an infinite loop.

Attachments (1)

infinite_loop_play.html (506 bytes) - added by simonjb 14 years ago.

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by simonjb

Attachment: infinite_loop_play.html added

comment:1 Changed 14 years ago by simonjb

Test case attached.

comment:2 Changed 14 years ago by dante

refs/see #4402

comment:3 Changed 14 years ago by Ben Lowery

Resolution: fixed
Status: newclosed

(In [10645]) fixes #4586

comment:4 Changed 14 years ago by Ben Lowery

(In [10646]) testcase for delay. refs #4586

Note: See TracTickets for help on using tickets.