From d5d1d58cc26e369debf53dd91f017e4a15684afc Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 24 May 2017 15:19:53 -0700 Subject: [PATCH] Exclude Backbone-sourced method from jscs checks FREEBIE --- js/models/messages.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/models/messages.js b/js/models/messages.js index d5715e5eda7..4e8ea058d8b 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -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; @@ -66,6 +67,7 @@ }; return this.sync('read', this, options); }, + // jscs:enable getDescription: function() { if (this.isGroupUpdate()) { var group_update = this.get('group_update');