Created
October 4, 2013 09:39
-
-
Save Haraldson/6823471 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sanitizing the data – it’s exactly the same coming from cache or from the API at the point where it’s set into the model | |
this.model | |
.set(data) | |
.trigger('change'); | |
// In the initialize function | |
this.model.on('change', this.render, this); // this works | |
this.model.on('change', this.renderSubViews, this); // this does not even fire |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment