Closed
Bug 1014110
Opened 11 years ago
Closed 11 years ago
[Camera] Lazy-loaded controller references are not kept
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: justindarc, Assigned: justindarc)
Details
Attachments
(1 file)
For debugging purposes, it is convenient to be able to access any controller through the console via:
`app.controllers[some_controller_name]`
However, controllers that are lazy-loaded do not retain their references through the `app.controllers` object and are instead replaced with a simple string of the controller's path name (e.g.: `app.controllers.battery === 'controllers/battery'`)
When lazy-loading controllers, we should replace the path name stored in `app.controllers` with the controller's reference, just like we do with other controllers that are not lazy-loaded.
| Assignee | ||
Comment 1•11 years ago
|
||
Assignee: nobody → jdarcangelo
Attachment #8426383 -
Flags: review?(dmarcos)
Updated•11 years ago
|
Attachment #8426383 -
Flags: review?(dmarcos) → review+
| Assignee | ||
Comment 2•11 years ago
|
||
Landed on master:
https://github.com/mozilla-b2g/gaia/commit/2af499a846f4b9c9e9f8d13819fa72b1dcc46d31
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•