Closed EmiliaPaz closed 8 months ago
This API permits addition of new observers, but not removal of old ones: action.onUserSettingsChanged()
.
Instead, it could match the established pattern of <eventName>.addListener()
and <eventName>.removeListener()
and become action.onUserSettingsChanged.addListener()
and action.onUserSettingsChanged.removeListener()
.
Instead, it could match the established pattern of
<eventName>.addListener()
and<eventName>.removeListener()
Thanks for the callout. I'll make sure @emilia-paz sees this but I suspect it is just a mistake in the proposal. We would almost certainly want to follow the normal event listener pattern here :)
@zombie / @dotproto / @xeenon - could you take a look at this?
Proposal based on w3c#346: New API: UserSettings.isOnToolbar change event