0

When I do a Model.fetch(), I'm getting the response from request as the attributes object.

How do I override this globally in Backbone settings / request settings ?

Balaji
  • 1,009
  • 7
  • 21
Balanarayanan
  • 481
  • 1
  • 5
  • 11
  • Are you sure you want to override this? The JSON response is intended to be stored in the `attributes` object. This is what allows you to do `model.set('myProp', 'my value')` and `model.get('myProp')` – garethdn May 15 '15 at 11:21
  • I'm getting the whole reqwest object in the attributes instead of the response text . – Balanarayanan May 15 '15 at 12:13
  • Not quite sure what you are asking, but sounds like you might need to override the [parse](http://backbonejs.org/#Model-parse) method in the model. – Tyler Marien May 15 '15 at 15:00

0 Answers0