backbone.validations icon indicating copy to clipboard operation
backbone.validations copied to clipboard

Showing error even when default value is added

Open marconi opened this issue 13 years ago • 0 comments

I have a model like:

class Item extends Backbone.Model
  defaults:
    name: 'default name'
    price: null
    description: ''

item = new Item

and whenever I set like item.set price: 1.0 its still showing errors both for name and description fields when it should be just for description.

Any idea?

marconi avatar Oct 30 '12 00:10 marconi