Closed
Bug 615873
Opened 15 years ago
Closed 15 years ago
setTimeout/setInterval passing random numbers to callback function
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: evert_chin, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.12 (KHTML, like Gecko) Chrome/9.0.587.0 Safari/534.12
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
if you pass a callback function that can accept parameter into setInterval but you didn't pass in the parameter for it. It will pass random numbers into the callback function when it wasn't suppose to.
Reproducible: Always
Steps to Reproduce:
1. declare a function that accepts parameter
2. pass the function identify into setTimeout/setInterval
Comment 1•15 years ago
|
||
This is expected, the functions pass in an extra argument that specifies how early/late the callback was invoked.
See https://developer.mozilla.org/En/DOM/window.setInterval#Callback_arguments
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•