The entire framework is now at your disposal.
data-jsclassto be the object class
Once a page is loaded, the framework looks for all elements that have
and creates an instance of the controller class specified, in this case
which starts the controller's behavior. In this case all we do is move the child element around.
$(element).hello() but normally this is done in the markup for reasons that will become clear in the HIJAX section.
datatag, like in
The responsive controller triggers the following events in response to environment changes:
start() function is called by the framework on completion of the page load. There is also a
stop() function which is called just before the page is unloaded. If the element that the controller is associated with is about to go away when the page is unloaded, it allows you the ability to gracefully unhook everything.
IMPORTANT Note the definition of the
stop() method to allow the controller to clean up after itself before a page change.
This must be done to allow garbage collection of unused routines and to prevent event handlers that are no longer in scope not to be called once we have moved on to another page.