nl_tokens: @private
pl_tokens: function setupContexts ( router , newState , transition ) { var partition = partitionHandlers ( router . state , newState ) ; forEach ( partition . exited , function ( handlerInfo ) { var handler = handlerInfo . handler ; delete handler . context ; if ( handler . exit ) { handler . exit ( ) ; } } ) ; var oldState = router . oldState = router . state ; router . <mask> = newState ; var currentHandlerInfos = router . currentHandlerInfos = partition . unchanged . slice ( ) ; try { forEach ( partition . updatedContext , function ( handlerInfo ) { return handlerEnteredOrUpdated ( currentHandlerInfos , handlerInfo , false , transition ) ; } ) ; forEach ( partition . entered , function ( handlerInfo ) { return handlerEnteredOrUpdated ( currentHandlerInfos , handlerInfo , true , transition ) ; } ) ; } catch ( e ) { router . state = oldState ; router . currentHandlerInfos = oldState . handlerInfos ; throw e ; } router . state . queryParams = finalizeQueryParamChange ( router , currentHandlerInfos , newState . queryParams ) ; }