From fb521ea4adacef59a7c6ba1242a515fef7683318 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 5 May 2012 15:52:02 -0400 Subject: [PATCH] Get tabulator code working in connector after upgrade, part 1 --- chrome/content/zotero/xpcom/rdf/init.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/rdf/init.js b/chrome/content/zotero/xpcom/rdf/init.js index 6982c033f..8cc4750d1 100644 --- 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