Closed
Bug 924592
Opened 11 years ago
Closed 10 years ago
[Contacts][Enhancement] Use Set in the logic for the list select mode
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: arcturus, Unassigned)
References
Details
Right now we are using an object to keep track of the users selected, as @rwaldon suggested, we could simplify the code using Set.
Comment 1•11 years ago
|
||
This was the idea I had: https://github.com/mozilla-b2g/gaia/pull/12591#issuecomment-25843710
Comment 2•11 years ago
|
||
I'm sympathetic with the idea but using ES6 objects can be a nightmare specially when porting the apps to other Web OSs. I've suffered it with the Clock App which abuses from that.
Comment 3•11 years ago
|
||
(In reply to Jose M. Cantera from comment #2)
> I'm sympathetic with the idea but using ES6 objects can be a nightmare
> specially when porting the apps to other Web OSs. I've suffered it with the
> Clock App which abuses from that.
We have a directive from Mozilla leadership to use new language features as they stabilize and are implemented in Firefox. This page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/ECMAScript_6_support_in_Mozilla was marked with the consensus level specifically at the request of FirefoxOS leadership to indicate which features were safe to use in FirefoxOS (align Firefox version + Green blocks = safe to use).
Comment 4•10 years ago
|
||
Do you still want to refactor that part, Francisco?
Flags: needinfo?(francisco)
Reporter | ||
Comment 5•10 years ago
|
||
Closing as this was merged (the idea from :rwaldron) 1 year ago.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(francisco)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•