1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-28 01:25:46 +01:00

Beep at failed key chains.

--HG--
branch : key-processing
This commit is contained in:
Kris Maglione
2011-01-28 04:58:56 -05:00
parent a0aebadc87
commit 032ba5fa50
3 changed files with 6 additions and 1 deletions

View File

@@ -1246,6 +1246,9 @@ update(iter, {
* given predicate.
*/
nth: function nth(iter, pred, n, self) {
if (typeof pred === "number")
[pred, n] = [function () true, pred]; // Hack.
for (let elem in iter)
if (pred.call(self, elem) && n-- === 0)
return elem;