mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
Use minification-friendly syntax
This commit is contained in:
parent
37f7db3c4e
commit
705f9016c5
1 changed files with 2 additions and 2 deletions
|
|
@ -21,11 +21,11 @@ angular.module('habitrpg')
|
|||
(gp > 999) ? (gp / Math.pow(10, 3)).toFixed(1) + "k" : gp;
|
||||
}
|
||||
})
|
||||
.filter('conditionalOrderBy', function($filter) {
|
||||
.filter('conditionalOrderBy', ['$filter', function($filter) {
|
||||
return function (array, predicate, sortPredicate, reverseOrder) {
|
||||
if (predicate) {
|
||||
return $filter('orderBy')(array, sortPredicate, reverseOrder);
|
||||
}
|
||||
return array;
|
||||
};
|
||||
});
|
||||
}]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue