Closed
Bug 777315
Opened 13 years ago
Closed 13 years ago
xpcom documentation is out of date
Categories
(Add-on SDK Graveyard :: Documentation, defect)
Add-on SDK Graveyard
Documentation
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 759868
People
(Reporter: ochameau, Unassigned)
Details
The documentation is still using "Base" pattern, where all classes like Factory, Services, SleepObserver have a `new` method.
But xpcom is now using `heritage` which doesn't have this pattern anymore. So that these classes are direct contructors.
Factory.new({ Component: Request });
is now:
Factory({ Component: Request });
Summary: xpcom documentation is out of data → xpcom documentation is out of date
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Comment 2•13 years ago
|
||
(In reply to Alexandre Poirot (:ochameau) from comment #0)
> Factory.new({ Component: Request });
> is now:
> Factory({ Component: Request });
At least for 1.7, it was (note lowercase c)..
Factory.new({ component: Request });
To get my code working with 1.8.2, I needed to s/.new// and s/component/Component/
The code comment here still refers to lowercase c:
https://github.com/mozilla/addon-sdk/blob/master/packages/api-utils/lib/xpcom.js#L97
Options is expected to have `component`
You need to log in
before you can comment on or make changes to this bug.
Description
•