documentcloud/backbone — Issue #1087: unable to bind "error" event on model after collection.create
Author: DavyC
Created: 2012-03-10 00:44:22+00:00
State: open

I just started using Backbone.js yesterday. I may be misunderstanding how it should work.

Basically, I tried
```javascript
collection.create({ attribute: "value" })
```
that will create a model instance in _prepareModel method and trigger "error" event on that instance, though I don't see a way to bind the event on that instance object or obtain the object before the event is triggered or event after the event is triggered.

Alternatively, I tried to initialize the instance myself and pass that into "create", but that simply skips the "validate" (or i should validate myself?). It may be related to Issue #1057.

In the end, I can probably get around with "set" or "save" to bind the event beforehand.