Closed Bug 1157736 Opened 9 years ago Closed 9 years ago

[Calendar] convert controllers into static objects or singletons

Categories

(Firefox OS Graveyard :: Gaia::Calendar, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1154988

People

(Reporter: mmedeiros, Assigned: mmedeiros)

References

Details

right now the controllers needs to be instantiated on the app.js and we end up using a lot of dependency injection just to pass these instances around.

we should convert them into static objects and/or singletons to reduce the complexity and reduce the need for the app namespace. let's make the dependencies as explicit as possible.
Assignee: nobody → mmedeiros
marking it as a duplicate of Bug 1154988 since I ended up finding another solution there to avoid the circular dependencies and keep the dependency injection to a minimum (introduced the "core" module)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.