1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-16 23:15:47 +01:00

Cleanup crufty apply code.

This commit is contained in:
Kris Maglione
2015-02-21 22:43:41 -08:00
parent 7ee579200f
commit 1ee5668cac
26 changed files with 65 additions and 69 deletions

View File

@@ -799,7 +799,8 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
args.push(params.user);
if (params.pass != null)
args.push(prams.pass);
xmlhttp.open.apply(xmlhttp, args);
apply(xmlhttp, "open", args);
for (let [header, val] of iter(params.headers || {}))
xmlhttp.setRequestHeader(header, val);