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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user