Skip to content

Commit

Permalink
Use "!=="
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 3, 2014
1 parent 663d392 commit b1cef59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/scripts/controllers/table-search-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ angular.module('groongaAdminApp')
if (!column.isIndex) {
return;
}
if (column.range != $scope.table) {
if (column.range !== $scope.table) {
return;
}
var matchColumns = $scope.parameters['match_columns'] || [];
column.sources.forEach(function(source) {
var localName = source.split('.')[1];
var inUse = matchColumns.indexOf(localName) != -1;
var inUse = matchColumns.indexOf(localName) !== -1;
$scope.indexedColumns.push({name: localName, inUse: inUse});
});
});
Expand Down

0 comments on commit b1cef59

Please sign in to comment.