Closed Bug 730493 Opened 12 years ago Closed 11 years ago

I want to use events in my code

Categories

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

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jbalogh, Unassigned)

Details

I want one module of my code to do stuff when another module fires an event.

However, https://addons.mozilla.org/en-US/developers/docs/sdk/1.4/packages/api-utils/docs/events.html says "This module is not intended to be used directly by programs. Rather, it is intended to be used by other modules that provide APIs to programs."

I try to create a new EventEmitter() in my code anyways, but EventEmitter doesn't actually implement the emit function.

I guess I have to use Services.obs instead.
Severity: normal → enhancement
Priority: -- → P2
the sdk/system/events module or sdk/event/core module will do what you need I think.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.