From 3a1ffb6174027fee749535017a6a846e708a7c08 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 9 Aug 2006 18:59:38 +0000 Subject: [PATCH] make LOC/WebVoyage scraper and other scrapers using Scholar.loadTranslator work again --- chrome/chromeFiles/content/scholar/xpcom/translate.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/xpcom/translate.js b/chrome/chromeFiles/content/scholar/xpcom/translate.js index a7681091e..87499b2a5 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/translate.js +++ b/chrome/chromeFiles/content/scholar/xpcom/translate.js @@ -1202,13 +1202,13 @@ Scholar.Translate.prototype._storageStreamFunctions = function(read, write) { var me = this; if(write) { // set up write() method - var fStream = _storageStream.getOutputStream(0); + var fStream = this._storageStream.getOutputStream(0); this._sandbox.Scholar.write = function(data) { fStream.write(data, data.length) }; // set Scholar.eof() to close the storage stream this._sandbox.Scholar.eof = function() { - this._storageStream.QueryInterface(Components.interfaces.nsIOutputStream); - this._storageStream.close(); + fStream.QueryInterface(Components.interfaces.nsIOutputStream); + fStream.close(); } }