commit 3a1ffb6174027fee749535017a6a846e708a7c08 parent f3a66085f50f07a7dcc62e177909be0556bd2868 Author: Simon Kornblith <simon@simonster.com> Date: Wed, 9 Aug 2006 18:59:38 +0000 make LOC/WebVoyage scraper and other scrapers using Scholar.loadTranslator work again Diffstat:
| M | 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 @@ -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(); } }