react-backbone v0.24.1 Release Notes

Release Date: 2015-03-27 // about 9 years ago
    • ➕ added onInvalid option awareness to the modelPopulate function - 7eddaaa
    • ✂ remove jquery references - 9f53497

    This is backwards compatible but you can now provide an onInvalid attribute to the modelPopulate options which will be called if the model fails validation. The populated attributes object will be provided.

    this.modelPopulate(function(model) {
        // the model is valid
      }, {
        onInvalid: function(attributes) {
          // the model failed the validation check
        }
      }
    });
    

    Commits