Skip to content
This repository was archived by the owner on Dec 3, 2020. It is now read-only.
This repository was archived by the owner on Dec 3, 2020. It is now read-only.

PriceTracker blocks bug 1451212 #318

@mixedpuppy

Description

@mixedpuppy

https://bugzilla.mozilla.org/show_bug.cgi?id=1451212

We have old code that we'd like to remove but (only) price tracker still uses the old call signature here:

onWidgetRemoved: new EventManager(
context,
'customizableUI.onWidgetRemoved',
(fire) => {

It needs to be updated to something like:

new EventManager({
  context, 
  name: "customizableUI.onWidgetRemoved",
  register: (fire) => {
    const toolbarButton = {
      onWidgetRemoved(widgetId) {
        fire.async(widgetId);
      },
    };
    CustomizableUI.addListener(toolbarButton);
    return () => {
      CustomizableUI.removeListener(toolbarButton);
    };
  },
}).api(),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions