Run custom logic upon module instantiation
Similar to widgets, you can use the onLoad()
method to run
custom logic once an application-level JavaScript module is instantiated, for
example:
return {
onLoad : function() {
CCLogger.info("Loading Demo KO Bindings");
}
};