nl_tokens: Replaces an item in the collection . Fires the { @link #event - replace } event when complete . @param { String } key The key associated with the item to replace or the replacement item .
pl_tokens: function ( key , o ) { var me = this , old , index ; if ( arguments . length == 1 ) { o = arguments [ 0 ] ; key = me . getKey ( o ) ; } old = me . map [ key ] ; if ( typeof key == 'undefined' || key === null || typeof old == 'undefined' ) { return me . add ( key , o ) ; } index = me . indexOfKey ( key ) ; me . items [ <mask> ] = o ; me . map [ key ] = o ; me . fireEvent ( 'replace' , key , old , o ) ; return o ; }