Skip to content
thedersen edited this page Dec 26, 2011 · 3 revisions
var SomeModel = Backbone.Model.extend({
  validation: {
    name: {
	  required: true
	}
  }
});
  • empty string is invalid
  • non-empty string is valid
  • string with just spaces is invalid
  • null is invalid
  • undefined is invalid
  • false boolean is valid
  • true boolean is valid
Clone this wiki locally