nl_tokens: Check if element has a class
pl_tokens: function hasClass ( element , className ) { if ( ! element || ! ( 'className' in <mask> ) ) { return false ; } return element . className . split ( / \s+ / ) . indexOf ( className ) !== - 1 ; }