nl_tokens: Create a set of flags that can be OR d ( | ) together to define a set of options .
pl_tokens: function defineFlags ( options , allOption ) { var i = 0 , obj = { } ; if ( allOption ) { obj [ allOption ] = 1 ; } _ . each ( <mask> , function ( opt ) { obj [ opt ] = 1 << i ; if ( allOption ) { obj [ allOption ] |= obj [ opt ] ; } i += 1 ; } ) ; return obj ; }