Closed
Bug 1173106
Opened 9 years ago
Closed 9 years ago
[Contacts][NGA] Move contacts.Matcher to it own Object.
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(b2g-master fixed)
RESOLVED
FIXED
NGA S2 (12Jun)
Tracking | Status | |
---|---|---|
b2g-master | --- | fixed |
People
(Reporter: borjasalguero, Assigned: borjasalguero)
References
Details
(Whiteboard: [NG Gaia Contacts])
Attachments
(1 file)
Remove dependencies from contacts. 'Matcher' must be a separate object from 'contacts.js'.
Updated•9 years ago
|
Whiteboard: [NG Gaia Contacts]
Updated•9 years ago
|
Target Milestone: --- → NGA S2 (12Jun)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → borja.bugzilla
Updated•9 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•9 years ago
|
||
Assignee | ||
Comment 2•9 years ago
|
||
Comment on attachment 8617873 [details] [review] Pull Request Let's start removing all dependencies from 'contacts.js'! Francisco, could you take a look? Thanks!
Attachment #8617873 -
Flags: review?(francisco)
Comment 3•9 years ago
|
||
Hei Borja, really good patch, I like the idea to remove the `contacts` namespace. Should we keep everything, both new classes Matcher and MatcheObj exported from the same file? So we won't need to read another file (saving some time), the file `contacts_matcher.js` could export both. What do you think?
Flags: needinfo?(borja.bugzilla)
Assignee | ||
Comment 4•9 years ago
|
||
In this case I would have one '.js' file per 'object' exported. It's tough to search in the code if a '.js' file is exporting more than one Object at the same time. I've found that MatcherObj is needed in 'global_contacts_data.js', and that's why I've separated it in a different file (my first approach was exporting just a 'Matcher').
Flags: needinfo?(borja.bugzilla)
Assignee | ||
Comment 5•9 years ago
|
||
After talking with Francisco, we are going to remove 'GlobalContactsData', so no 'MatcherObj' is needed out of the 'Matcher' object. I've updated the patch with this, so now it's ready to be reviewed! :)
Comment 6•9 years ago
|
||
Comment on attachment 8617873 [details] [review] Pull Request Tested on the phone and looking great. Thanks Borja.
Attachment #8617873 -
Flags: review?(francisco) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 7•9 years ago
|
||
Thanks Francisco!
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Updated•9 years ago
|
status-b2g-master:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•