mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1244647 fix typeof check, r=mikedeboer
This commit is contained in:
parent
6472188551
commit
3e1e108a08
@ -2410,7 +2410,7 @@ var Microformats; // jshint ignore:line
|
||||
* @return {Object || undefined}
|
||||
*/
|
||||
getDOMParser: function () {
|
||||
if (typeof DOMParser === undefined) {
|
||||
if (typeof DOMParser === "undefined") {
|
||||
try {
|
||||
return Components.classes["@mozilla.org/xmlextras/domparser;1"]
|
||||
.createInstance(Components.interfaces.nsIDOMParser);
|
||||
@ -4540,9 +4540,9 @@ var Microformats; // jshint ignore:line
|
||||
return External;
|
||||
|
||||
|
||||
}));
|
||||
}));
|
||||
try {
|
||||
// mozilla jsm support
|
||||
Components.utils.importGlobalProperties(["URL"]);
|
||||
} catch(e) {}
|
||||
this.EXPORTED_SYMBOLS = ['Microformats'];
|
||||
this.EXPORTED_SYMBOLS = ['Microformats'];
|
||||
|
Loading…
Reference in New Issue
Block a user