nl_tokens: Called each time an asynchronous function that s been monkeypatched in index . js is called . If there are no listeners return the function unwrapped . If there are any asyncListeners and any of them have callbacks pass them off to asyncWrap for later use otherwise just call the listener .
pl_tokens: function wrapCallback ( original ) { var length = listeners . length ; // no context to capture, so avoid closure creation if ( length === 0 ) return original ; // capture the active listeners as of when the wrapped function was called var list = listeners . slice ( ) ; for ( var i = 0 ; i < length ; ++ i ) { if ( list [ i ] . flags > 0 ) return asyncWrap ( <mask> , list , length ) ; } return simpleWrap ( original , list , length ) ; }