Closed Bug 1553462 Opened 6 years ago Closed 6 years ago

Allow PrefObserver utils to add weak weak observer

Categories

(DevTools :: Shared Components, task, P2)

task

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(1 obsolete file)

In the PrefObserver devtools/client/shared/prefs.js#180-206, it would be interesting to allow adding a weak observer, so the consumer don't have to take care of removing the observer.

Blocks: 1553463
Type: defect → task

This will allow a consumer to not have to call the PrefObserver
destroy function.
A test is also added for the PrefObserver util as there
wasn't any.

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Attachment #9066746 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: