nl_tokens: Checks if an element has a given class
pl_tokens: function hasClass ( el , className ) { var test ; if ( el . classList ) { test = el . classList . contains ( className ) ; } else { var className = new RegExp ( '(^| )' + className + '( |$)' , 'gi' ) ; <mask> = new RegExp ( className ) . test ( el . className ) ; } return test ; }