mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-18 14:13:33 +01:00
@@ -441,7 +441,7 @@ function curry(fn, length, self, acc) {
|
|||||||
return fn;
|
return fn;
|
||||||
|
|
||||||
// Close over function with 'this'
|
// Close over function with 'this'
|
||||||
function close(self, fn) () => fn.apply(self, arguments);
|
function close(self, fn) (...args) => fn.apply(self, args);
|
||||||
|
|
||||||
if (acc == null)
|
if (acc == null)
|
||||||
acc = [];
|
acc = [];
|
||||||
|
|||||||
@@ -747,7 +747,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
|||||||
httpGet: function httpGet(url, callback, self) {
|
httpGet: function httpGet(url, callback, self) {
|
||||||
let params = callback;
|
let params = callback;
|
||||||
if (!isObject(params))
|
if (!isObject(params))
|
||||||
params = { callback: params && (() => callback.apply(self, arguments)) };
|
params = { callback: params && ((...args) => callback.apply(self, args)) };
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let xmlhttp = services.Xmlhttp();
|
let xmlhttp = services.Xmlhttp();
|
||||||
|
|||||||
Reference in New Issue
Block a user