function(view) {
      var prefix = this.getOption('childViewEventPrefix');
  
      // Forward all child view events through the parent,
      // prepending "childview:" to the event name
      this.listenTo(view, 'all', function() {
        var args = _.toArray(arguments);
        var rootEvent = args[0];
        var childEvents = this.normalizeMethods(_.result(this, 'childEvents'));
  
        args[0] = prefix + ':' + rootEvent;
        args.splice(1, 0, view);
  
        // call collectionView childEvent if defined
        if (typeof childEvents !== 'undefined' && _.isFunction(childEvents[rootEvent])) {
          childEvents[rootEvent].apply(this, args.slice(1));
        }
  
        this.triggerMethod.apply(this, args);
      });
    }
function(view) {
      var prefix = this.getOption('childViewEventPrefix');
  
      
      
      this.listenTo(view, 'all', function() {
        var args = _.toArray(arguments);
        var rootEvent = args[0];
        var childEvents = this.normalizeMethods(_.result(this, 'childEvents'));
  
        args[0] = prefix + ':' + rootEvent;
        args.splice(1, 0, view);
  
        
        if (typeof childEvents !== 'undefined' && _.isFunction(childEvents[rootEvent])) {
          childEvents[rootEvent].apply(this, args.slice(1));
        }
  
        this.triggerMethod.apply(this, args);
      });
    }
function ( view ) { var prefix = this . getOption ( 'childViewEventPrefix' ) ; // Forward all child view events through the parent, // prepending "childview:" to the event name this . listenTo ( view , 'all' , function ( ) { var args = _ . toArray ( arguments ) ; var rootEvent = args [ 0 ] ; var childEvents = this . normalizeMethods ( _ . result ( this , 'childEvents' ) ) ; args [ 0 ] = prefix + ':' + rootEvent ; args . splice ( 1 , 0 , view ) ; // call collectionView childEvent if defined if ( typeof childEvents !== 'undefined' && _ . isFunction ( childEvents [ rootEvent ] ) ) { childEvents [ rootEvent ] . apply ( this , args . slice ( 1 ) ) ; } this . triggerMethod . apply ( this , args ) ; } ) ; }
Set up the child view event forwarding. Uses a "childview:" prefix in front of all forwarded events.
Set up the child view event forwarding . Uses a childview : prefix in front of all forwarded events .