summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-10-23 16:56:55 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-10-23 16:56:55 +0200
commit31b60d82fcae64a844805a2a76a0af25fb9c16c2 (patch)
treea82d7d6e6097f67215406ea47a11671292a4dc7b /models/boards.js
parentb3696e1e3b366770af8c41861b5cf996cdd2378a (diff)
downloadwekan-31b60d82fcae64a844805a2a76a0af25fb9c16c2.tar.gz
wekan-31b60d82fcae64a844805a2a76a0af25fb9c16c2.tar.bz2
wekan-31b60d82fcae64a844805a2a76a0af25fb9c16c2.zip
Upgrade Meteor to 1.2.1-rc4
This version includes a more complete selection of ES2015 polyfills that I started used across the code base, for instance by replacing `$.trim(str)` by `str.trim()`.
Diffstat (limited to 'models/boards.js')
-rw-r--r--models/boards.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/boards.js b/models/boards.js
index 1d365a95..98d6ec77 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -97,11 +97,11 @@ Boards.helpers({
},
labelIndex(labelId) {
- return _.indexOf(_.pluck(this.labels, '_id'), labelId);
+ return _.pluck(this.labels, '_id').indexOf(labelId);
},
memberIndex(memberId) {
- return _.indexOf(_.pluck(this.members, 'userId'), memberId);
+ return _.pluck(this.members, 'userId').indexOf(memberId);
},
absoluteUrl() {