nl_tokens: / * Add Success / Error Handlers
pl_tokens: function addHandlers ( reqOptions ) { reqOptions . success = cb => { if ( typeof cb === 'function' ) reqOptions . _onSuccess = cb ; else throw <mask> ( 'callback not passed to "success" method' ) ; return reqOptions ; } reqOptions . error = cb => { if ( typeof cb === 'function' ) reqOptions . _onError = cb ; else throw Error ( 'callback not passed to "error" method' ) ; return reqOptions ; } return reqOptions ; }