Skip to content

acceptance validator

thedersen edited this page Jan 21, 2012 · 2 revisions
var SomeModel = Backbone.Model.extend({
  validation: {
    name: {
	  acceptance: true
	}
  }
});
  • non-boolean is invalid
  • false boolean is invalid
  • true boolean is valid
  • string with true is valid
Clone this wiki locally