Closed
Bug 598909
Opened 13 years ago
Closed 13 years ago
change request module to use EventEmitter event registration model
Categories
(Add-on SDK Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: irakli, Assigned: irakli)
References
()
Details
Attachments
(1 file)
14.11 KB,
patch
|
myk
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #477899 -
Flags: review?(myk)
Assignee | ||
Updated•13 years ago
|
Comment 2•13 years ago
|
||
Comment on attachment 477899 [details] [diff] [review] Implements changes >diff --git a/packages/jetpack-core/docs/request.md b/packages/jetpack-core/docs/request.md >- terms of XHR, when `readyState == 4`. The request object is available as >- `this` inside the callback. So in order to use the response, you'll need to >- access `this.response` >+ terms of XHR, when `readyState == 4`. The `responce` & `request` objects >+ are passed to the callback as an arguments. Nit: responce -> response >diff --git a/packages/jetpack-core/tests/test-request.js b/packages/jetpack-core/tests/test-request.js Nit: it would be useful to have at least one test that tests that request.response == response inside a "complete" handler.
Attachment #477899 -
Flags: review?(myk) → review+
Updated•13 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•13 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•13 years ago
|
||
fixed by changeset https://hg.mozilla.org/labs/jetpack-sdk/rev/0c5f1b013c57
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 4•13 years ago
|
||
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
Version: Trunk → unspecified
Updated•13 years ago
|
Keywords: checkin-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•