summaryrefslogtreecommitdiff
path: root/legacy/RDFDataSource.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/RDFDataSource.sys.mjs')
-rw-r--r--legacy/RDFDataSource.sys.mjs6
1 files changed, 4 insertions, 2 deletions
diff --git a/legacy/RDFDataSource.sys.mjs b/legacy/RDFDataSource.sys.mjs
index 27687ba..67f087e 100644
--- a/legacy/RDFDataSource.sys.mjs
+++ b/legacy/RDFDataSource.sys.mjs
@@ -21,7 +21,8 @@
* property element. If a resource is first added as the subject of an assertion
* then it will be serialised at the top level of the XML.
*/
-
+var RDFDataSource = (function() {
+XPCOMUtils.defineLazyGlobalGetters(this, ["DOMParser", "Element"]);
const NS_XML = "http://www.w3.org/XML/1998/namespace";
const NS_XMLNS = "http://www.w3.org/2000/xmlns/";
const NS_RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
@@ -1107,7 +1108,7 @@ class RDFBlankNode extends RDFSubject {
* changed as assertions are added and removed to the RDF. Pass a null document
* to start with an empty graph.
*/
-export class RDFDataSource {
+return class RDFDataSource {
constructor(document) {
// All known resources, indexed on URI
this._resources = {};
@@ -1509,3 +1510,4 @@ export class RDFDataSource {
return IOUtils.writeUTF8(file, this.serializeToString());
}
}
+})()