nl_tokens: Adds all elements of an Array or an Object to the collection .
pl_tokens: function ( addItems ) { var me = this , filtered = me . filtered , sorted = me . sorted , all = me . all , items = me . items , keys = me . keys , map = me . map , autoFilter = me . getAutoFilter ( ) , autoSort = me . getAutoSort ( ) , newKeys = [ ] , newItems = [ ] , filterable = me . mixins . filterable , addedItems = [ ] , ln , key , i , item ; if ( Ext . isObject ( addItems ) ) { for ( key in addItems ) { if ( addItems . hasOwnProperty ( key ) ) { newItems . push ( items [ key ] ) ; newKeys . push ( key ) ; } } } else { newItems = addItems ; ln = addItems . length ; for ( i = 0 ; i < ln ; i ++ ) { newKeys . push ( me . getKey ( addItems [ i ] ) ) ; } } for ( i = 0 ; i < ln ; i ++ ) { key = newKeys [ i ] ; item = newItems [ i ] ; if ( typeof key != 'undefined' && key !== null ) { if ( typeof map [ <mask> ] != 'undefined' ) { me . replace ( key , item ) ; continue ; } map [ key ] = item ; } all . push ( item ) ; if ( filtered && autoFilter && filterable . isFiltered . call ( me , item ) ) { continue ; } me . length ++ ; keys . push ( key ) ; items . push ( item ) ; addedItems . push ( item ) ; } if ( addedItems . length ) { me . dirtyIndices = true ; if ( sorted && autoSort ) { me . sort ( ) ; } return addedItems ; } return null ; }