nl_tokens: recursive function that returns an array of angular . elements that have the passed attribute set on them
pl_tokens: function ( element , attribute ) { var resultingElements = [ ] ; var childNodes = element . children ( ) ; if ( childNodes . length ) { angular . forEach ( childNodes , function ( child ) { resultingElements = resultingElements . concat ( taDOM . getByAttribute ( angular . element ( child ) , attribute ) ) ; } ) ; } if ( element . attr ( <mask> ) !== undefined ) resultingElements . push ( element ) ; return resultingElements ; }