Andreas Köberle
Andreas Köberle

Reputation: 111032

Change Backbone data after fetching and before change event is fired

I fetch data from the server and want to change some string with I18n strings before the subscribers are notified of the model change. Is there a way to add a success method that will always called in first place after fetching data?

Upvotes: 1

Views: 417

Answers (1)

Andreas Köberle
Andreas Köberle

Reputation: 111032

Ok found by myself.

Model.parse

http://backbonejs.org/docs/backbone.html#section-65

Upvotes: 2

Related Questions