nl_tokens: Remove a class from an element
pl_tokens: function removeClass ( element , className ) { var classNames = className ; function _removeClass ( el , cn ) { var classRegex ; if ( el . classList ) { el . classList . remove ( cn ) ; } else { classRegex = new RegExp ( '(?:^|\\s)' + cn + '(?!\\S)' , 'g' ) ; el . className = el . className . replace ( classRegex , '' ) . trim ( ) ; } } if ( ! isArray ( className ) ) { classNames = className . trim ( ) . split ( / \s+ / ) ; } classNames . forEach ( _removeClass . <mask> ( null , element ) ) ; return element ; }