Skip to content
Permalink
Browse files

refactor(orderBy): remove unneeded function wrapping

  • Loading branch information
kwypchlo authored and lgalfaso committed Dec 15, 2014
1 parent fb2c585 commit 83f88c1818623a1ba166eb09aa8cac5d604d08fe
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/ng/filter/orderBy.js
@@ -130,9 +130,7 @@ function orderByFilter($parse) {
}
if (predicate === '') {
// Effectively no predicate was passed so we compare identity
return reverseComparator(function(a, b) {
return compare(a, b);
}, descending);
return reverseComparator(compare, descending);
}
get = $parse(predicate);
if (get.constant) {

0 comments on commit 83f88c1

Please sign in to comment.
You can’t perform that action at this time.