nl_tokens: Adds an item to the collection . Fires the { @link #event - add } event when complete . @param { String } key The key to associate with the item or the new item .
pl_tokens: function ( key , obj ) { var me = this , myObj = obj , myKey = key , old ; if ( arguments . length == 1 ) { myObj = myKey ; myKey = me . getKey ( myObj ) ; } if ( typeof myKey != 'undefined' && myKey !== null ) { old = me . map [ myKey ] ; if ( typeof <mask> != 'undefined' ) { return me . replace ( myKey , myObj ) ; } me . map [ myKey ] = myObj ; } me . length ++ ; me . items . push ( myObj ) ; me . keys . push ( myKey ) ; me . fireEvent ( 'add' , me . length - 1 , myObj , myKey ) ; return myObj ; }