mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 14:24:17 +01:00
Gecko developers hate us.
This commit is contained in:
@@ -30,6 +30,7 @@ EXCPPFLAGS = -fno-rtti \
|
||||
-fno-exceptions \
|
||||
-fshort-wchar \
|
||||
-fPIC \
|
||||
-Os \
|
||||
$(NULL)
|
||||
|
||||
XPIDL ?= $(PYTHON) $(GECKO_SDK_PATH)/sdk/bin
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
# define nsString_h___
|
||||
# define nsStringFwd_h___
|
||||
# define nsStringGlue_h__
|
||||
# define nsContentUtils_h___
|
||||
class nsAFlatCString;
|
||||
typedef nsString nsSubstring;
|
||||
# include "nsIScrollableFrame.h"
|
||||
|
||||
@@ -704,8 +704,8 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
|
||||
let async = params.callback || params.onload || params.onerror;
|
||||
if (async) {
|
||||
xmlhttp.onload = function handler(event) { util.trapErrors(params.onload || params.callback, params, xmlhttp, event) };
|
||||
xmlhttp.onerror = function handler(event) { util.trapErrors(params.onerror || params.callback, params, xmlhttp, event) };
|
||||
xmlhttp.addEventListener("load", function handler(event) { util.trapErrors(params.onload || params.callback, params, xmlhttp, event) }, false);
|
||||
xmlhttp.addEventListener("error", function handler(event) { util.trapErrors(params.onerror || params.callback, params, xmlhttp, event) }, false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user