Closed
Bug 1501632
Opened 6 years ago
Closed 6 years ago
Return an unsubscribe function from SourceMapURLService.prototype.subscribe
Categories
(DevTools :: Framework, enhancement, P3)
DevTools
Framework
Tracking
(firefox65 fixed)
RESOLVED
FIXED
Firefox 65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
Details
Attachments
(1 file)
The SourceMapURLService has a subscribe and an unsubscribe functions to respectively listen and stop listening for source map changes on a given location (url + line + column). The unsubscribe function need to be called with the same parameters as the subscribe function, which means the consumer need to keep a reference to the callback function it passes to subscribe. Returning an unsubscribe function from subscribe would make the process a bit more easier and future proof.
Assignee | ||
Comment 1•6 years ago
|
||
The SourceMapURLService has a subscribe and an unsubscribe functions to respectively listen and stop listening for source map changes on a given location (url + line + column). The unsubscribe function need to be called with the same parameters as the subscribe function, which means the consumer need to keep a reference to the callback. By making the subscribe function return the unsubscribe function, this makes things a bit easier.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8967e494e4e3 Return an unsubscribe function from SourceMapURLService.prototype.subscribe; r=loganfsmyth.
Comment 3•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8967e494e4e3
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
You need to log in
before you can comment on or make changes to this bug.
Description
•