Skip to content

Commit

Permalink
angular.isBoolean is unknown - fixes #549
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Dec 6, 2016
1 parent 5a8b428 commit a0fccf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/filters/localeOrderBy_filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ angular.module('contactsApp')
return !reverseOrder ? valueA.localeCompare(valueB) : valueB.localeCompare(valueA);
}

if (angular.isNumber(valueA) || angular.isBoolean(valueA)) {
if (angular.isNumber(valueA) || typeof valueA === 'boolean') {
return !reverseOrder ? valueA - valueB : valueB - valueA;
}

Expand Down

0 comments on commit a0fccf5

Please sign in to comment.