Convert JS address book directory to a JS class
Categories
(MailNews Core :: Address Book, enhancement)
Tracking
(Not tracked)
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
Attachments
(1 file)
31.14 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
To get the JS directory type going, and because of the twisted way the address book works, I implemented it as an object and did some "clever" (bonkers) things with prototypes to make it all work. Now that the address book manager is also implemented in javascript and search is done without URI mangling, I can undo a lot of the "clever"ness and simplify everything. This will be helpful for implementing new directory types such as CardDAV.
Assignee | ||
Comment 1•5 years ago
|
||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
It would, but we can't do that at this stage. This is still an XPCOM component (and we still have to use it as one in at least one place) and they can't use constructors with arguments.
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/34122197a6a4
Convert JS address book directory to a JS class. r=mkmelin
Assignee | ||
Updated•5 years ago
|
Comment 5•5 years ago
|
||
This will be helpful for implementing new directory types such as CardDAV.
Yay! Thanks for working on this!
I can undo a lot of the "clever"ness and simplify everything
And thanks for cleaning up!
Your work is very appreciated.
Description
•