mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-07 12:05:47 +01:00
Merge default.
--HG-- branch : bootstrapped
This commit is contained in:
@@ -1134,7 +1134,7 @@ const array = Class("array", Array, {
|
||||
* Returns the nth member of the given array that matches the
|
||||
* given predicate.
|
||||
*/
|
||||
nth: function first(ary, pred, n, self) {
|
||||
nth: function nth(ary, pred, n, self) {
|
||||
for (let elem in values(ary))
|
||||
if (pred.call(self, elem) && n-- === 0)
|
||||
return elem;
|
||||
|
||||
@@ -267,7 +267,7 @@ const Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
|
||||
return stack.top;
|
||||
},
|
||||
|
||||
compileMacro: function compileFormat(macro, keepUnknown) {
|
||||
compileMacro: function compileMacro(macro, keepUnknown) {
|
||||
let stack = [frame()];
|
||||
stack.__defineGetter__("top", function () this[this.length - 1]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user