Give model's 'defaults' function, not object
Always wrap it on function.
Backbone.Model.extend({
defaults: function() {
// populate here
}
});
Written by Hendra Gunawan
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Backbone.js
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#