This project is archived and is in readonly mode.

#988 ✓resolved
Florian Pichler

Function.delay() does not accept Number 0 as argument anymore

Reported by Florian Pichler | September 10th, 2010 @ 12:25 PM | in 1.3.0 rc2 (closed)

If you have a 0 (number) as single argument, args gets replaced by [] as 0 == false.

Possible fix (untested):
return setTimeout(this.bind(bind, (!!(args||args === 0) ? args : [])), delay);

This might occur with .periodical(), too.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Referenced by