Skip to content

Commit da5d12e

Browse files
authored
Merge pull request #33 from spadgett/lodash-4
Update Lodash to 4.17.4
2 parents ea53f02 + 1da5467 commit da5d12e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"angular": ">=1.3.8 <1.6",
3030
"selectize": "~0.12.1",
3131
"fontawesome": "~4.3.0",
32-
"lodash": "~3.10.1"
32+
"lodash": "~4.17.4"
3333
},
3434
"devDependencies": {
3535
"patternfly": "3.5.1"

labelSelector.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ LabelSelector.prototype.each = function(fn) {
8787
LabelSelector.prototype.select = function(resources) {
8888
// If passed an array, return an array.
8989
if (_.isArray(resources)) {
90-
return _.filter(resources, this.matches, this);
90+
return _.filter(resources, _.bind(this.matches, this));
9191
}
9292

9393
// Otherwise handle it as a map.
94-
return _.pick(resources, this.matches, this);
94+
return _.pickBy(resources, _.bind(this.matches, this));
9595
};
9696

9797
LabelSelector.prototype.matches = function(resource) {
@@ -151,7 +151,7 @@ LabelSelector.prototype.hasConjunct = function(conjunct) {
151151
};
152152

153153
LabelSelector.prototype.findConjunctsMatching = function(operator, key) {
154-
return _.pick(this._conjuncts, _.matches({operator: operator, key: key}));
154+
return _.pickBy(this._conjuncts, _.matches({operator: operator, key: key}));
155155
};
156156

157157
// Test whether this label selector covers the given selector

0 commit comments

Comments
 (0)