demo/amd/rjs/output/unified/marionette-build.js
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(value);
        return events;
      }, {}, this);
    }
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(value);
        return events;
      }, {}, this);
    }
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 ( value ) ; return events ; } , { } , this ) ; }
Configure `triggers` to forward DOM events to view events. `triggers: {"click .foo": "do:foo"}`
Configure triggers to forward DOM events to view events . triggers : { click . foo : do : foo }