www

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

commit cc99a3963004eb577efe4f66e3691bd237fba22d
parent e11bb22159f08f15263268050e6fc781e94a1dce
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun, 20 Mar 2011 08:59:32 +0000

fix comments


Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -210,8 +210,9 @@ Zotero.Integration = new function() { } /** - * Reads from the temp file set up to handle integration pipe and executes the appropriate - * integration command + * Listens asynchronously for data on the integration pipe and reads it when available + * + * Used to read from the integration pipe on Fx 4 */ var _integrationPipeListenerFx4 = { "onStartRequest":function() {}, @@ -232,6 +233,8 @@ Zotero.Integration = new function() { /** * Reads from the temp file set up to handle integration pipe and executes the appropriate * integration command + * + * Used to read from the integration pipe on Fx 3.6 */ var _integrationPipeObserverFx36 = {"observe":function(subject) { // if we had an error reading from the pipe, return immediately, because trying to read @@ -270,7 +273,7 @@ Zotero.Integration = new function() { } /** - * Initializes the Zotero Integration Pipe in Firefox 3.6 + * Initializes the Zotero Integration Pipe */ function _initializeIntegrationPipe() { // make a new pipe @@ -294,6 +297,8 @@ Zotero.Integration = new function() { if(_fifoFile.exists()) { if(Zotero.isFx36) { + // no deferred open capability, so we need to use the sh/tmpfile hack + // make a tmp file _tmpFile = Components.classes["@mozilla.org/file/directory_service;1"]. getService(Components.interfaces.nsIProperties).