torso-bundle.js
function(model, stopListening) {
      if (this.model && stopListening) {
        this.stopListening(this.model);
      }
      this.model = model;
      this.listenTo(this.model, 'validated:valid', this.valid);
      this.listenTo(this.model, 'validated:invalid', this.invalid);
    }
function(model, stopListening) {
      if (this.model && stopListening) {
        this.stopListening(this.model);
      }
      this.model = model;
      this.listenTo(this.model, 'validated:valid', this.valid);
      this.listenTo(this.model, 'validated:invalid', this.invalid);
    }
function ( model , stopListening ) { if ( this . model && stopListening ) { this . stopListening ( this . model ) ; } this . model = model ; this . listenTo ( this . model , 'validated:valid' , this . valid ) ; this . listenTo ( this . model , 'validated:invalid' , this . invalid ) ; }
Resets the form model with the passed in model. Stops listening to current form model
and sets up listeners on the new one.
@method resetModelListeners
@param model {Torso.FormModel} the new form model
@param [stopListening=false] {Boolean} if true, it will stop listening to the previous form model
Resets the form model with the passed in model . Stops listening to current form model and sets up listeners on the new one .