torso-bundle.js
function(eventHash) {
      // coped from Backbone
      var delegateEventSplitter = /^(\S+)\s*(.*)$/;
      var namespacedEvents = {};
      var behaviorId = this.cid;
      _.each(eventHash, function(value, key) {
        var splitEventKey = key.match(delegateEventSplitter);
        var eventName = splitEventKey[1];
        var selector = splitEventKey[2];
        var namespacedEventName = eventName + '.behavior.' + behaviorId;
        namespacedEvents[[namespacedEventName, selector].join(' ')] = value;
      });
      return namespacedEvents;
    }
function(eventHash) {
      // coped from Backbone
      var delegateEventSplitter = /^(\S+)\s*(.*)$/;
      var namespacedEvents = {};
      var behaviorId = this.cid;
      _.each(eventHash, function(value, key) {
        var splitEventKey = key.match(delegateEventSplitter);
        var eventName = splitEventKey[1];
        var selector = splitEventKey[2];
        var namespacedEventName = eventName + '.behavior.' + behaviorId;
        namespacedEvents[[namespacedEventName, selector].join(' ')] = value;
      });
      return namespacedEvents;
    }
function ( eventHash ) { // coped from Backbone var delegateEventSplitter = / ^(\S+)\s*(.*)$ / ; var namespacedEvents = { } ; var behaviorId = this . cid ; _ . each ( eventHash , function ( value , key ) { var splitEventKey = key . match ( delegateEventSplitter ) ; var eventName = splitEventKey [ 1 ] ; var selector = splitEventKey [ 2 ] ; var namespacedEventName = eventName + '.behavior.' + behaviorId ; namespacedEvents [ [ namespacedEventName , selector ] . join ( ' ' ) ] = value ; } ) ; return namespacedEvents ; }
Namespaces events in event hash

@method __namespaceEvents
@param eventHash {Object} to namespace
@return {Object} with event namespaced with '.behavior' and the cid of the behavior
@private
Namespaces events in event hash