MainView Class
MainView manages all the modules. At initialization time it injects all the needed DOM elements. Template: main.html
Item Index
Methods
allModulesLoaded
()
This method executes a set of functions when all the modules have been loaded.
initialize
-
A
The initialization method of this object.
Parameters:
-
A
Mapmap of parameters
layoutManager
()
This method alters the layout at run-time. It should be used only when absolutely necessary preferring instead a static CSS+HTML+Mustaches.js layout.
loadViews
()
This method initializes all the modules declared in the modules.js file. In this environment a module is a View-Controller object: - each module is responsible for its representation; - each module is combined with a DOM element of the MainView's template; - each DOM element has an ID with prefix 'bgplay' to avoid ambiguities with the background html.
render
()
This method draws this module (eg. inject the DOM and elements).