Tweak RDF loading code
This commit is contained in:
parent
fb521ea4ad
commit
5894a9511d
2 changed files with 5 additions and 5 deletions
|
@ -29,8 +29,8 @@ var $rdf = {
|
||||||
alert: Zotero.debug
|
alert: Zotero.debug
|
||||||
};
|
};
|
||||||
|
|
||||||
if(!Zotero.RDF) { // For connector
|
if(Zotero.RDF) {
|
||||||
|
Zotero.RDF.AJAW = $rdf;
|
||||||
|
} else {
|
||||||
Zotero.RDF = {AJAW:$rdf};
|
Zotero.RDF = {AJAW:$rdf};
|
||||||
} else { // For extension
|
|
||||||
Zotero.RDF.AJAW.$rdf = $rdf;
|
|
||||||
}
|
}
|
|
@ -243,11 +243,11 @@ function makeZoteroContext(isConnector) {
|
||||||
'rdf/rdfparser',
|
'rdf/rdfparser',
|
||||||
'rdf/serialize'
|
'rdf/serialize'
|
||||||
];
|
];
|
||||||
zContext.Zotero.RDF = {AJAW:{Zotero:zContext.Zotero}};
|
zContext.Zotero.RDF = {Zotero:zContext.Zotero};
|
||||||
for (var i=0; i<rdfXpcomFiles.length; i++) {
|
for (var i=0; i<rdfXpcomFiles.length; i++) {
|
||||||
Cc["@mozilla.org/moz/jssubscript-loader;1"]
|
Cc["@mozilla.org/moz/jssubscript-loader;1"]
|
||||||
.getService(Ci.mozIJSSubScriptLoader)
|
.getService(Ci.mozIJSSubScriptLoader)
|
||||||
.loadSubScript("chrome://zotero/content/xpcom/" + rdfXpcomFiles[i] + ".js", zContext.Zotero.RDF.AJAW);
|
.loadSubScript("chrome://zotero/content/xpcom/" + rdfXpcomFiles[i] + ".js", zContext.Zotero.RDF);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isStandalone()) {
|
if(isStandalone()) {
|
||||||
|
|
Loading…
Reference in a new issue