Bug 1244647 fix typeof check, r=mikedeboer

This commit is contained in:
Shane Caraveo 2016-02-02 14:05:34 -08:00
parent 6472188551
commit 3e1e108a08

View File

@ -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'];