nl_tokens: Configure triggers to forward DOM events to view events . triggers : { click . foo : do : foo }
pl_tokens: function ( ) { if ( ! this . triggers ) { return ; } // Allow `triggers` to be configured as a function var triggers = this . normalizeUIKeys ( _ . result ( this , 'triggers' ) ) ; // Configure the triggers, prevent default // action and stop propagation of DOM events return _ . reduce ( triggers , function ( events , value , key ) { events [ key ] = this . _buildViewTrigger ( <mask> ) ; return events ; } , { } , this ) ; }