Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4586 closed defect (fixed)

dojo._Animation.play() 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

dojo._Animation.play() contains the following statements:

var d = delay||this.delay;
if(d > 0){
	setTimeout(dojo.hitch(this, function(){ this.play(null, 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 12 years ago.

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by simonjb

Attachment: infinite_loop_play.html added

comment:1 Changed 12 years ago by simonjb

Test case attached.

comment:2 Changed 12 years ago by dante

refs/see #4402

comment:3 Changed 12 years ago by Ben Lowery

Resolution: fixed
Status: newclosed

(In [10645]) fixes #4586

comment:4 Changed 12 years ago by Ben Lowery

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

Note: See TracTickets for help on using tickets.