Closed
Bug 971569
Opened 11 years ago
Closed 11 years ago
[System2] Instantiable TTLView
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: alive, Assigned: kgrandon)
References
Details
(Keywords: perf, Whiteboard: [c= p=3 s=2014.02.14 u=])
Attachments
(2 files)
We need ttl_view.js to be instantiable and let bootstrap or its parent module to instantiate it.
Also jsdoc + unit test improvement wanted.
Assignee | ||
Comment 1•11 years ago
|
||
I'll help with some easy ones first, taking this.
Assignee | ||
Comment 2•11 years ago
|
||
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 8374866 [details] [review]
Github pull request
Hey Alive - before taking more work I wanted to make sure I was doing this correctly. Can you take a look and let me know what you think?
I made a few changes to the conventions, and I think we should probably use them, if you're against these, we can discuss them.
1 - No more duplicate named function. We are no longer required to name functions which are members of an object. We were originally doing this for profiling, but platform support has landed which means we no longer have to do this.
2 - Usage of Object.prototype = {} for methods. I personally think that this is much more readable, and will often avoid awkward line breaking. This is the pattern we use in a lot of the other applications as well. In order to register class members, you need to specify @class in the constructor docblock, and /** @lends <ClassName> */ inside of the prototype assignment.
Attachment #8374866 -
Flags: review?(alive)
Reporter | ||
Comment 4•11 years ago
|
||
Comment on attachment 8374866 [details] [review]
Github pull request
r+ if you wrap ttlview with IIFE. Really appreciated for document + test + jshint fix! Great first system-app-v2 bug.
Attachment #8374866 -
Flags: review?(alive) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 6•11 years ago
|
||
Attachment #8375642 -
Flags: review?(kgrandon)
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 8375642 [details] [review]
Fix bootstrap test
Travis is super slow this morning, but I want this for some other patches (will keep an eye on it, but I am sure it's fine).
Landed follow-up: https://github.com/mozilla-b2g/gaia/commit/edb989a286623257d0fb061583ae9cd9a1916732
Attachment #8375642 -
Flags: review?(kgrandon) → review+
Assignee | ||
Comment 8•11 years ago
|
||
Landed a follow-up (comments only), that fix JSDoc style due to the anon function: https://github.com/mozilla-b2g/gaia/commit/838bd0bf6fb37728952add07bf95bb0370eeb896
Assignee | ||
Updated•11 years ago
|
Whiteboard: [c= p=3 s= u=] → [c= p=3 s=2014.02.14 u=]
You need to log in
before you can comment on or make changes to this bug.
Description
•