diff --git a/chrome/chromeFiles/content/scholar/xpcom/translate.js b/chrome/chromeFiles/content/scholar/xpcom/translate.js index a7681091e4..87499b2a55 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(); } }