springroll.ContainerPlugin Class
Responsible for creating properties, methods to
the SpringRoll Container when it's created.
var plugin = new ContainerPlugin();
plugin.setup = function()
{
// Do setup here
};
Constructor
springroll.ContainerPlugin
Parameters:
-
[priority=0]
Int
optional
The priority, higher priority
plugins are setup, preloaded and destroyed first.
close
()
Called when an application has begun to be closed.
closed
()
Called when an application is closed completely.
open
()
Called when an application is opening and before the
app has completely finished loading.
opened
()
Called when an application is opening and before the
app has completely finished loading.
setup
()
When the Container is being initialized. This function
is bound to the Container. This should be overridden.
teardown
()
When the Container is being destroyed. This function
is bound to the Container. This should be overridden.
priority
Int
private
The priority of the plugin. Higher numbers handled first. This should be set
in the constructor of the extending ContainerPlugin.
Default: 0