torso-bundle.js
function() {
      var behaviorEvents = _.result(this, 'events');
      var viewEvents = this.view.events;

      if (!viewEvents) {
        if (!behaviorEvents) {
          return;
        } else {
          viewEvents = {};
        }
      }

      var namespacedEvents = this.__namespaceEvents(behaviorEvents);
      var boundBehaviorEvents = this.__bindEventCallbacksToBehavior(namespacedEvents);

      if (_.isFunction(viewEvents)) {
        this.view.events = _.wrap(_.bind(viewEvents, this.view), function(viewEventFunction) {
          return _.extend(boundBehaviorEvents, viewEventFunction());
        });
      } else if (_.isObject(viewEvents)) {
        this.view.events = _.extend(boundBehaviorEvents, viewEvents);
      }
    }
function() {
      var behaviorEvents = _.result(this, 'events');
      var viewEvents = this.view.events;

      if (!viewEvents) {
        if (!behaviorEvents) {
          return;
        } else {
          viewEvents = {};
        }
      }

      var namespacedEvents = this.__namespaceEvents(behaviorEvents);
      var boundBehaviorEvents = this.__bindEventCallbacksToBehavior(namespacedEvents);

      if (_.isFunction(viewEvents)) {
        this.view.events = _.wrap(_.bind(viewEvents, this.view), function(viewEventFunction) {
          return _.extend(boundBehaviorEvents, viewEventFunction());
        });
      } else if (_.isObject(viewEvents)) {
        this.view.events = _.extend(boundBehaviorEvents, viewEvents);
      }
    }
function ( ) { var behaviorEvents = _ . result ( this , 'events' ) ; var viewEvents = this . view . events ; if ( ! viewEvents ) { if ( ! behaviorEvents ) { return ; } else { viewEvents = { } ; } } var namespacedEvents = this . __namespaceEvents ( behaviorEvents ) ; var boundBehaviorEvents = this . __bindEventCallbacksToBehavior ( namespacedEvents ) ; if ( _ . isFunction ( viewEvents ) ) { this . view . events = _ . wrap ( _ . bind ( viewEvents , this . view ) , function ( viewEventFunction ) { return _ . extend ( boundBehaviorEvents , viewEventFunction ( ) ) ; } ) ; } else if ( _ . isObject ( viewEvents ) ) { this . view . events = _ . extend ( boundBehaviorEvents , viewEvents ) ; } }
Adds behavior's event handlers to view
Behavior's event handlers fire on view events but are run in the context of the behavior

@method __bindEventCallbacks
@private
Adds behavior s event handlers to view Behavior s event handlers fire on view events but are run in the context of the behavior