diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-03-19 00:00:30 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-08-13 10:38:07 -0500 |
commit | de25e333e17f05140b82793776dbce51fdec296d (patch) | |
tree | 855b403b873e271308c59aaa455d73982552b9ea /legacy/RDFDataSource.sys.mjs | |
parent | 312a791ae03bddd725dee063344801f959cfe44d (diff) | |
download | legacywolf-de25e333e17f05140b82793776dbce51fdec296d.tar.gz legacywolf-de25e333e17f05140b82793776dbce51fdec296d.zip |
Turn into an extension
Diffstat (limited to 'legacy/RDFDataSource.sys.mjs')
-rw-r--r-- | legacy/RDFDataSource.sys.mjs | 6 |
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()); } } +})() |