commit fb521ea4adacef59a7c6ba1242a515fef7683318
parent 6e3dfc45eef38e224563ef65ce31eeb18ee6ce3b
Author: Simon Kornblith <simon@simonster.com>
Date: Sat, 5 May 2012 15:52:02 -0400
Get tabulator code working in connector after upgrade, part 1
Diffstat:
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/rdf/init.js b/chrome/content/zotero/xpcom/rdf/init.js
@@ -1,5 +1,5 @@
/* Set up the environment before loading the rest of the files into Zotero */
-Zotero.RDF.AJAW = {
+var $rdf = {
Util: {
ArrayIndexOf: function (arr, item, i) {
//supported in all browsers except IE<9
@@ -29,4 +29,8 @@ Zotero.RDF.AJAW = {
alert: Zotero.debug
};
-Zotero.RDF.AJAW.$rdf = Zotero.RDF.AJAW;
+if(!Zotero.RDF) { // For connector
+ Zotero.RDF = {AJAW:$rdf};
+} else { // For extension
+ Zotero.RDF.AJAW.$rdf = $rdf;
+}
+\ No newline at end of file