Closed
Bug 1139338
Opened 9 years ago
Closed 9 years ago
[Settings] Refactor Observable
Categories
(Firefox OS Graveyard :: Gaia::Settings, defect)
Tracking
(tracking-b2g:+)
RESOLVED
FIXED
tracking-b2g | + |
People
(Reporter: arthurcc, Assigned: arthurcc)
Details
Attachments
(1 file)
There are potential memory and performance issues in Observable due to the current way of extending an observable enforces duplicate functions. Observable should provide ways making the users be able to derive new type of objects using prototype. To derive robust modules from Observable, there are a few features to be implemented: - Read-only properties - Dependency properties where the value of them are derived from other properties.
Comment 1•9 years ago
|
||
Assignee | ||
Comment 2•9 years ago
|
||
Comment on attachment 8572556 [details] [review] [gaia] crh0716:1139338 > mozilla-b2g:master EJ, the new Observable is backward compatible, but in long term I would like to switch to the new definition. The way it is implemented is based on our offline discussion before. Could you help review it? Thanks.
Attachment #8572556 -
Flags: review?(ejchen)
Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8572556 [details] [review] [gaia] crh0716:1139338 > mozilla-b2g:master Change to feedback? as I found that there are issues when deriving from a module that is derived from a Observable.
Attachment #8572556 -
Flags: review?(ejchen) → feedback?(ejchen)
Comment on attachment 8572556 [details] [review] [gaia] crh0716:1139338 > mozilla-b2g:master Thanks Arthur, there are still some missing concepts that need to be discussed with you face to face later.
Attachment #8572556 -
Flags: feedback?(ejchen) → feedback+
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8572556 [details] [review] [gaia] crh0716:1139338 > mozilla-b2g:master I've added the tests and docs. Please help review the patch, thanks!
Attachment #8572556 -
Flags: review?(ejchen)
Comment on attachment 8572556 [details] [review] [gaia] crh0716:1139338 > mozilla-b2g:master Thanks Arthur, I just left some comments on GitHub, can you check it when you have time ? Thanks !!! :)
Attachment #8572556 -
Flags: review?(ejchen)
Updated•9 years ago
|
blocking-b2g: backlog → ---
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8572556 [details] [review] [gaia] crh0716:1139338 > mozilla-b2g:master EJ, I've addressed the comments. Would you mind take a look at it? Thanks.
Attachment #8572556 -
Flags: review?(ejchen)
Comment on attachment 8572556 [details] [review] [gaia] crh0716:1139338 > mozilla-b2g:master r+ with few comments addressed. Thanks Arthur.
Attachment #8572556 -
Flags: review?(ejchen) → review+
Assignee | ||
Comment 9•9 years ago
|
||
Thanks, EJ! master: dd4bea14aa6ef50be8228141d7728acd60d2d0fc
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•