Skip to content

Commit 32b831e

Browse files
authored
Merge pull request #363 from dtaylor113/branch-4.0-dev
Updated angular-patternfly to use lodash 4.x.
2 parents bf18e02 + 2cb2d0e commit 32b831e

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ module.exports = function (grunt) {
134134
'lib/angular-animate/angular-animate.js',
135135
'lib/angular-bootstrap/ui-bootstrap-tpls.js',
136136
'misc/angular-bootstrap-prettify.js',
137-
'lib/lodash/lodash.min.js',
137+
'lib/lodash/dist/lodash.min.js',
138138
'dist/angular-patternfly.js',
139139
'lib/angular-ui-router/release/angular-ui-router.min.js'],
140140
html5Mode: false,

bower.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
"url": "git://github.com/patternfly/angular-patternfly.git"
3838
},
3939
"dependencies": {
40-
"angular": "1.3.0 - 1.5.*",
41-
"angular-animate": "1.3.0 - 1.5.*",
42-
"angular-sanitize": "1.3.0 - 1.5.*",
40+
"angular": "1.5.*",
41+
"angular-animate": "1.5.*",
42+
"angular-sanitize": "1.5.*",
4343
"angular-bootstrap": "0.14.x",
44-
"lodash": "3.x",
44+
"lodash": "4.x",
4545
"patternfly": "~3.15.0"
4646
},
4747
"devDependencies": {
48-
"angular-mocks": "1.3.0 - 1.5.*",
48+
"angular-mocks": "1.5.*",
4949
"angular-ui-router": "^0.3.2"
5050
}
5151
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"main": "index.js",
99
"homepage": "https://github.com/patternfly/angular-patternfly",
1010
"dependencies": {
11-
"angular": "1.3.0 - 1.5.*",
12-
"angular-animate": "1.3.0 - 1.5.*",
13-
"angular-sanitize": "1.3.0 - 1.5.*",
11+
"angular": "1.5.*",
12+
"angular-animate": "1.5.*",
13+
"angular-sanitize": "1.5.*",
1414
"angular-ui-bootstrap": "0.14.x",
15-
"lodash": "3.x",
15+
"lodash": "4.x",
1616
"patternfly": "~3.15.0"
1717
},
1818
"devDependencies": {

src/filters/filter-directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ angular.module('patternfly.filters').directive('pfFilter', function () {
179179
templateUrl: 'filters/filter.html',
180180
controller: function ($scope) {
181181
$scope.filterExists = function (filter) {
182-
var foundFilter = _.findWhere($scope.config.appliedFilters, {title: filter.title, value: filter.value});
182+
var foundFilter = _.find($scope.config.appliedFilters, {title: filter.title, value: filter.value});
183183
return foundFilter !== undefined;
184184
};
185185

src/toolbars/toolbar-directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ angular.module('patternfly.toolbars').directive('pfToolbar', function () {
434434
};
435435

436436
$scope.filterExists = function (filter) {
437-
var foundFilter = _.findWhere($scope.config.filterConfig.appliedFilters, {title: filter.title, value: filter.value});
437+
var foundFilter = _.find($scope.config.filterConfig.appliedFilters, {title: filter.title, value: filter.value});
438438
return foundFilter !== undefined;
439439
};
440440

0 commit comments

Comments
 (0)