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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

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.
Attached file pull-request (master)
Assignee: nobody → jdarcangelo
Attachment #8426383 - Flags: review?(dmarcos)
Attachment #8426383 - Flags: review?(dmarcos) → review+
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.

Attachment

General

Created:
Updated:
Size: