1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-31 21:53:31 +02:00

Use builtin Array.find rather than array.nth where applicable.

This commit is contained in:
Kris Maglione
2014-02-22 14:57:23 -08:00
parent 414a165e9c
commit 6790c62c41
14 changed files with 58 additions and 43 deletions

View File

@@ -157,7 +157,7 @@ var Download = Class("Download", {
let val = this._compare[order.substr(1)](this, other);
return (order[0] == "-") ? -val : val;
}, this).nth(util.identity, 0) || 0,
}, this).find(util.identity) || 0,
timeRemaining: Infinity,