torso-bundle.js
function(alias) {
      var config = this.getMapping(alias);
      if (config.computed && config.mapping.pull) {
        this.__invokeComputedPull.call({formModel: this, alias: alias});
      } 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], this, model);
          }
        }, this);
      } else {
        var model = this.getTrackedModel(alias);
        if (model) {
          this.__copyFields(config.mapping, this, model);
        }
      }
    }
function(alias) {
      var config = this.getMapping(alias);
      if (config.computed && config.mapping.pull) {
        this.__invokeComputedPull.call({formModel: this, alias: alias});
      } 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], this, model);
          }
        }, this);
      } else {
        var model = this.getTrackedModel(alias);
        if (model) {
          this.__copyFields(config.mapping, this, model);
        }
      }
    }
function ( alias ) { var config = this . getMapping ( alias ) ; if ( config . computed && config . mapping . pull ) { this . __invokeComputedPull . call ( { formModel : this , alias : alias } ) ; } 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 ] , this , model ) ; } } , this ) ; } else { var model = this . getTrackedModel ( alias ) ; if ( model ) { this . __copyFields ( config . mapping , this , model ) ; } } }
Pulls in new information from tracked models using the mapping defined by the given alias.
This works for both model mappings and computed value mappings
@method __pull
@param alias {String} the name of the mapping that will be used during the pull
@private
Pulls in new information from tracked models using the mapping defined by the given alias . This works for both model mappings and computed value mappings