[Pkg-mozext-commits] [nostalgy] 03/13: Protect call against error.

David Prévot taffit at moszumanska.debian.org
Fri Feb 6 22:43:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository nostalgy.

commit a59affb42b28fd60c2a288f541f280bb27ed4ea5
Author: alain.frisch <alain.frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date:   Wed Jul 30 12:27:45 2014 +0000

    Protect call against error.
    
    git-svn-id: http://nostalgy.googlecode.com/svn/trunk@240 56b81dcf-5a2f-0410-9db0-014be2e416ff
---
 content/folders.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/content/folders.js b/content/folders.js
index 138bd2d..e869a5b 100644
--- a/content/folders.js
+++ b/content/folders.js
@@ -181,7 +181,7 @@ function NostalgyGetAutoCompleteValuesFunction(box) {
 
     /* For unknown reason, the popup is left closed (even though box.popupOpen = true)
      * when the user does a new nostalgy completion after the previous one has been
-     * cancelled with Escape.  We this force the popup to be opened some time after
+     * cancelled with Escape.  We thus force the popup to be opened some time after
      * the completeion is done.
      */
     if (box.popup.state == "closed")
@@ -223,7 +223,11 @@ function NostalgyFolderSelectionBox(box) {
       if (nostalgy_completion_options.tab_shell_completion) {
         box.shell_completion = true;
         box.value = NostalgyCompleteUnique(box.value);
-        box.controller.handleText();
+        try {
+          box.controller.handleText();
+        } catch (ex) {
+          NostalgyDebug("err:" + ex);
+        }
       }
     }
   };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/nostalgy.git



More information about the Pkg-mozext-commits mailing list