Commit 7a5f65b93e819b0919ddd5eb427bc381722eadd1

  • avatar
  • arvind
  • Wed Mar 05 19:13:17 IST 2014
Overriding Comment.toJSON to return the required json object.  Default
toJSON did not ``unvivify`` the model in how attribute.
  • Diff rendering mode:
  • inline
  • side by side

app.js

35 initialize: function() {35 initialize: function() {
36 },36 },
37 toJSON: function() {37 toJSON: function() {
38 how = this.get('how').toJSON();
39 return this;
38 return JSON.parse(JSON.stringify(this.attributes));
40 }39 }
41 });40 });
4241