nl_tokens: Our initialization function . Called on page load .
pl_tokens: function ( ) { _addTabEventHandlers ( ) ; var config = { hideMainContent : false } ; if ( document . location . hash === "#generator-result" ) { config = { hideMainContent : <mask> } } $ ( "#generator" ) . html ( generatorPageTemplate ( config ) ) ; // now fade in the three sections: nav, main content & footer row $ ( "#generatorTabs,#mainContent,#footerRow" ) . hide ( ) . removeClass ( "hidden" ) . fadeIn ( 400 ) ; // always initialize the sidebar with whatever's in the selected example (always first item right now) var index = pageHelper . getDemoPieChartIndex ( EXAMPLE_PIES ) ; _loadDemoPie ( EXAMPLE_PIES [ index ] ) ; // focus on the title field, just to be nice $ ( "#pieTitle" ) . focus ( ) ; var subscriptions = { } ; subscriptions [ C . EVENT . DEMO_PIE . LOAD ] = _onRequestLoadDemoPie ; subscriptions [ C . EVENT . DEMO_PIE . RENDER . NO_ANIMATION ] = _renderWithNoAnimation ; subscriptions [ C . EVENT . DEMO_PIE . RENDER . WITH_ANIMATION ] = _renderWithAnimation ; subscriptions [ C . EVENT . DEMO_PIE . RENDER . UPDATE_PROP ] = _updateProperty ; subscriptions [ C . EVENT . DEMO_PIE . SELECT_SEGMENT ] = _selectPieSegment ; subscriptions [ C . EVENT . PAGE . LOAD ] = _onPageSelected ; subscriptions [ C . EVENT . PAGE . RESIZE ] = _onPageResize ; mediator . subscribe ( _MODULE_ID , subscriptions ) ; }