nl_tokens: a bit fussy but unavoidable . Whenever a page changes we need to re - draw the pies IFF ( if and only if ) the initial page load wasn t the about page
pl_tokens: function ( msg ) { if ( ! _firstPageLoaded ) { _firstPage = msg . data . <mask> ; _firstPageLoaded = true ; if ( _firstPage === "about" ) { setTimeout ( function ( ) { _renderContent ( ) ; var width = $ ( window ) . width ( ) ; var breakPointIndex = null ; for ( var i = 0 ; i < C . OTHER . BREAKPOINTS . length ; i ++ ) { if ( width >= C . OTHER . BREAKPOINTS [ i ] ) { breakPointIndex = i ; } } if ( breakPointIndex === null ) { _handleViewport ( "small" ) ; } } , 10 ) ; } return ; } if ( msg . data . page === "about" ) { if ( ! _isRendered ) { _renderContent ( ) ; } $ ( "#aboutPageSlides" ) . slidesjs ( "refresh" ) ; } }