mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 00:02:27 +01:00
Make further use of default parameters.
--HG-- extra : rebase_source : ab666bce7ed7e47c8f1e2bc4145f553da990d319
This commit is contained in:
@@ -13,9 +13,7 @@ var History = Module("history", {
|
||||
|
||||
get service() services.history,
|
||||
|
||||
get: function get(filter, maxItems, sort) {
|
||||
sort = sort || this.SORT_DEFAULT;
|
||||
|
||||
get: function get(filter, maxItems, sort = this.SORT_DEFAULT) {
|
||||
if (isString(filter))
|
||||
filter = { searchTerms: filter };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user