Skip to content

Commit

Permalink
Using indexOf instead of contains
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jun 9, 2015
1 parent ad6d74d commit 22451fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/js/controllers/newsCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ angular.module('jboss-forge').controller('newsCtrl', function($rootScope, $scope
if ($scope.selectedCategories.length > 0) {
for (i=0;i<$scope.selectedCategories.length;i++)
{
if (item.tags && item.tags.contains($scope.selectedCategories[i])) {
if (item.tags && item.tags.indexOf($scope.selectedCategories[i]) > -1) {
return item;
}
}
Expand Down

0 comments on commit 22451fc

Please sign in to comment.