nl_tokens: React to the ajax request being completed
pl_tokens: function ( options , success , <mask> ) { var me = this , i , len , events , event , transaction , transactions ; if ( success ) { events = me . createEvents ( response ) ; for ( i = 0 , len = events . length ; i < len ; ++ i ) { event = events [ i ] ; transaction = me . getTransaction ( event ) ; me . fireEvent ( 'data' , me , event ) ; if ( transaction && me . fireEvent ( 'beforecallback' , me , event , transaction ) !== false ) { me . runCallback ( transaction , event , true ) ; Ext . direct . Manager . removeTransaction ( transaction ) ; } } } else { transactions = [ ] . concat ( options . transaction ) ; for ( i = 0 , len = transactions . length ; i < len ; ++ i ) { transaction = me . getTransaction ( transactions [ i ] ) ; if ( transaction && transaction . retryCount < me . maxRetries ) { transaction . retry ( ) ; } else { event = new Ext . direct . ExceptionEvent ( { data : null , transaction : transaction , code : Ext . direct . Manager . exceptions . TRANSPORT , message : 'Unable to connect to the server.' , xhr : response } ) ; me . fireEvent ( 'data' , me , event ) ; if ( transaction && me . fireEvent ( 'beforecallback' , me , transaction ) !== false ) { me . runCallback ( transaction , event , false ) ; Ext . direct . Manager . removeTransaction ( transaction ) ; } } } } }