Skip to content

Commit

Permalink
Exclude Backbone-sourced method from jscs checks
Browse files Browse the repository at this point in the history
FREEBIE
  • Loading branch information
scottnonnenberg committed May 25, 2017
1 parent 3ceb3a0 commit d5d1d58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/models/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
// overriding this to allow for this.unset('unread'), save to db, then fetch()
// to propagate. We don't want the unset key in the db so our unread index stays
// small.
// jscs:disable
fetch: function(options) {
options = options ? _.clone(options) : {};
if (options.parse === void 0) options.parse = true;
Expand All @@ -66,6 +67,7 @@
};
return this.sync('read', this, options);
},
// jscs:enable
getDescription: function() {
if (this.isGroupUpdate()) {
var group_update = this.get('group_update');
Expand Down

0 comments on commit d5d1d58

Please sign in to comment.