Closed Bug 978202 Opened 10 years ago Closed 7 years ago

event/core should work on Page-mod workers

Categories

(Add-on SDK Graveyard :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: evold, Unassigned)

Details

Something like the following shoudl work:

const { emit } = require('sdk/event/core');
const { PageMod } = require('sdk/page-mod');

PageMod({
  onAttach: mod => {
    emit(mod, 'foo', 'bar');
  }
});

This should emit a 'foo' event with 'bar' data to the page mod instance when the mod instance is attached.
OS: Mac OS X → All
Hardware: x86 → All
https://bugzilla.mozilla.org/show_bug.cgi?id=1399562
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.