torso-bundle.js
function(viewPrepare) {
      var viewContext = viewPrepare() || {};
      var behaviorContext = _.omit(this.toJSON(), 'view');
      _.extend(behaviorContext, this.prepare());
      viewContext[this.alias] = behaviorContext;
      return viewContext;
    }
function(viewPrepare) {
      var viewContext = viewPrepare() || {};
      var behaviorContext = _.omit(this.toJSON(), 'view');
      _.extend(behaviorContext, this.prepare());
      viewContext[this.alias] = behaviorContext;
      return viewContext;
    }
function ( viewPrepare ) { var viewContext = viewPrepare ( ) || { } ; var behaviorContext = _ . omit ( this . toJSON ( ) , 'view' ) ; _ . extend ( behaviorContext , this . prepare ( ) ) ; viewContext [ this . alias ] = behaviorContext ; return viewContext ; }
Wraps the view's prepare such that it returns the combination of the view and behavior's prepare results.
@method __viewPrepareWrapper
@private
@param viewPrepare {Function} the prepare method from the view.
@return {Object} the combined view and behavior prepare() results.
{
<behavior alias>: behavior.prepare(),
... // view prepare properties.
}
Wraps the view s prepare such that it returns the combination of the view and behavior s prepare results .