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)

x86
macOS
defect
Not set
normal

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.
See Also: → 902873
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.
(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).
Do you still want to refactor that part, Francisco?
Flags: needinfo?(francisco)
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.