Closed Bug 596704 Opened 14 years ago Closed 14 years ago

make timer module's docs call setInterval's `callback` argument a `function`

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: myk, Assigned: erikvvold)

Details

Attachments

(1 file)

The timer module's docs say setInterval's `callback` argument is a `callback`; it should be a `function`.

Erik Vold has provided a change that fixes the problem at http://github.com/erikvold/jetpack-sdk/commit/afa9ae9cf75ca71d3deb7d2de83c0f0e86e3d7e3.  I wanted to attach it to this bug, but GitHub doesn't seem to provide any way to download the change as a patch, and my git fu isn't yet sufficient to clone his repo and generate the patch myself.

Brian: do you know a way to get a patch out of GitHub, or must my fu improve?
Comment on attachment 475604 [details] [diff] [review]
Minor edit of callback argument's type in docs for timer.js module

Looks good, r=myk and a=myk for landing as low-risk fix during freeze.
Attachment #475604 - Flags: review+
Keywords: checkin-needed
Apparently github has a fairly undocumented feature: if you append ".diff" to the commit page's URL, it'll give you a simple diff. I couldn't find an affordance (i.e. a link) for that, though.


http://github.com/erikvold/jetpack-sdk/commit/afa9ae9cf75ca71d3deb7d2de83c0f0e86e3d7e3.diff
Brian, that's awesome!

Fixed by changeset https://hg.mozilla.org/labs/jetpack-sdk/rev/7e1b40a3f664.

Erik, thanks for the fix!
Assignee: nobody → erikvvold
Status: NEW → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
" if you append ".diff" to the commit page's URL, it'll give you a simple diff."

sweet!
.patch works as well
The Add-on SDK is no longer a Mozilla Labs experiment and has become a big enough project to warrant its own Bugzilla product, so the "Add-on SDK" product has been created for it, and I am moving its bugs to that product.

To filter bugmail related to this change, filter on the word "looptid".
Component: Jetpack SDK → General
Product: Mozilla Labs → Add-on SDK
QA Contact: jetpack-sdk → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: