Closed Bug 538920 Opened 15 years ago Closed 15 years ago

nsIObserver should be marked "function"

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1

People

(Reporter: Gavin, Assigned: Gavin)

Details

Attachments

(1 file, 1 obsolete file)

I'm a bit surprised that I would be the first person suggesting this, so maybe I'm missing some reason why it wouldn't work, but bz couldn't think of any either... The goal is to allow JS addObserver callers to just pass in a function object rather than objects with a "notify" method, the same way e.g. nsIDOMEventListener works.
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attachment #421004 - Flags: review?(benjamin)
Comment on attachment 421004 [details] [diff] [review] patch This looks like the test and not the patch.
Attached patch real patchSplinter Review
bah, thanks for the heads up :)
Attachment #421004 - Attachment is obsolete: true
Attachment #421226 - Flags: review?(benjamin)
Attachment #421004 - Flags: review?(benjamin)
Attachment #421226 - Flags: review?(benjamin) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: