www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 9614828cecbabf6e2d2f45afc7d29ce6b378c906
parent 184c128969b53f1a98f367fc0b020fe5f1375b08
Author: Avram Lyon <ajlyon@gmail.com>
Date:   Wed, 16 Feb 2011 21:10:58 +0000

Trans: Fix JSTOR for Zotero 2.1 betas; processAsync is defined internally


Diffstat:
Mtranslators/JSTOR.js | 28+---------------------------
1 file changed, 1 insertion(+), 27 deletions(-)

diff --git a/translators/JSTOR.js b/translators/JSTOR.js @@ -3,7 +3,7 @@ "label":"JSTOR", "creator":"Simon Kornblith, Sean Takats, Michael Berkowitz, and Eli Osherovich", "target":"https?://[^/]*jstor\\.org[^/]*/(action/(showArticle|doBasicSearch|doAdvancedSearch|doLocatorSearch|doAdvancedResults|doBasicResults)|stable/|pss/)", - "minVersion":"1.0.0b4.r1", + "minVersion":"2.1b6", "maxVersion":"", "priority":100, "inRepository":"1", @@ -37,32 +37,6 @@ function detectWeb(doc, url) { } } - -Zotero.Utilities.processAsync = function (sets, callbacks, onDone) { - var currentSet; - var index = 0; - - var nextSet = function () { - if (!sets.length) { - onDone(); - return; - } - index = 0; - currentSet = sets.shift(); - callbacks[0](currentSet, nextCallback); - }; - var nextCallback = function () { - index++; - callbacks[index](currentSet, nextCallback); - }; - - // Add a final callback to proceed to the next set - callbacks[callbacks.length] = function () { - nextSet(); - } - nextSet(); -} - function doWeb(doc, url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) {