torso-bundle.js
function(alias) {
      var config = this.getMapping(alias);
      if (config.computed && config.mapping.push) {
        var models = this.__getComputedModels(alias);
        if (models) {
          config.mapping.push.call(this, models);
        }
      } else if (config.computed) {
        var modelAliases = this.__getModelAliases(alias);
        _.each(modelAliases, function(modelAlias) {
          var model = this.getTrackedModel(modelAlias);
          if (model) {
            this.__copyFields(config.mapping[modelAlias], model, this);
          }
        }, this);
      } else {
        var model = this.getTrackedModel(alias);
        if (model) {
          this.__copyFields(config.mapping, model, this);
        }
      }
    }
function(alias) {
      var config = this.getMapping(alias);
      if (config.computed && config.mapping.push) {
        var models = this.__getComputedModels(alias);
        if (models) {
          config.mapping.push.call(this, models);
        }
      } else if (config.computed) {
        var modelAliases = this.__getModelAliases(alias);
        _.each(modelAliases, function(modelAlias) {
          var model = this.getTrackedModel(modelAlias);
          if (model) {
            this.__copyFields(config.mapping[modelAlias], model, this);
          }
        }, this);
      } else {
        var model = this.getTrackedModel(alias);
        if (model) {
          this.__copyFields(config.mapping, model, this);
        }
      }
    }
function ( alias ) { var config = this . getMapping ( alias ) ; if ( config . computed && config . mapping . push ) { var models = this . __getComputedModels ( alias ) ; if ( models ) { config . mapping . push . call ( this , models ) ; } } else if ( config . computed ) { var modelAliases = this . __getModelAliases ( alias ) ; _ . each ( modelAliases , function ( modelAlias ) { var model = this . getTrackedModel ( modelAlias ) ; if ( model ) { this . __copyFields ( config . mapping [ modelAlias ] , model , this ) ; } } , this ) ; } else { var model = this . getTrackedModel ( alias ) ; if ( model ) { this . __copyFields ( config . mapping , model , this ) ; } } }
Pushes form model information to tracked models using the mapping defined by the given alias.
This works for both model mappings and computed value mappings
@method __push
@param alias {String} the name of the mapping that will be used during the push
@private
Pushes form model information to tracked models using the mapping defined by the given alias . This works for both model mappings and computed value mappings