client/src/luigi-client.js
function addInitListener(initFn) {
    var id = _getRandomId();
    _onInitFns[id] = initFn;
    if (luigiInitialized && isFunction(initFn)) {
      initFn(currentContext.context);
    }
    return id;
  }
function addInitListener(initFn) {
    var id = _getRandomId();
    _onInitFns[id] = initFn;
    if (luigiInitialized && isFunction(initFn)) {
      initFn(currentContext.context);
    }
    return id;
  }
function addInitListener ( initFn ) { var id = _getRandomId ( ) ; _onInitFns [ id ] = initFn ; if ( luigiInitialized && isFunction ( initFn ) ) { initFn ( currentContext . context ) ; } return id ; }
Use the functions and parameters to define the lifecycle of listeners, navigation nodes, and Event data.
@name lifecycle
 
Registers a listener called with the context object as soon as Luigi is instantiated. Defer your application bootstrap if you depend on authentication data coming from Luigi.
@param {function} initFn the function that is called once Luigi is initialized
@memberof lifecycle
Use the functions and parameters to define the lifecycle of listeners navigation nodes and Event data .