nl_tokens: Adds a CSS class ( or classes ) to this Component s rendered element .
pl_tokens: function ( cls , prefix , suffix ) { var oldCls = this . getCls ( ) , newCls = ( oldCls ) ? oldCls . slice ( ) : [ ] , ln , i , cachedCls ; prefix = <mask> || '' ; suffix = suffix || '' ; if ( typeof cls == "string" ) { cls = [ cls ] ; } ln = cls . length ; //check if there is currently nothing in the array and we don't need to add a prefix or a suffix. //if true, we can just set the newCls value to the cls property, because that is what the value will be //if false, we need to loop through each and add them to the newCls array if ( ! newCls . length && prefix === '' && suffix === '' ) { newCls = cls ; } else { for ( i = 0 ; i < ln ; i ++ ) { cachedCls = prefix + cls [ i ] + suffix ; if ( newCls . indexOf ( cachedCls ) == - 1 ) { newCls . push ( cachedCls ) ; } } } this . setCls ( newCls ) ; }