[Pkg-mozext-commits] [firebug] 20/82: Properly reset reused JSEditor auto-completers
David Prévot
taffit at moszumanska.debian.org
Mon Mar 31 22:45:37 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag fbtest-1.11.2
in repository firebug.
commit 4c94bc70a1adc18cd20b2dd6d438b07d545be0b3
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date: Wed Dec 19 01:06:40 2012 +0100
Properly reset reused JSEditor auto-completers
"Escape" revert state used not to be reset.
---
extension/content/firebug/console/autoCompleter.js | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/extension/content/firebug/console/autoCompleter.js b/extension/content/firebug/console/autoCompleter.js
index a1b88e1..eb8d8dc 100644
--- a/extension/content/firebug/console/autoCompleter.js
+++ b/extension/content/firebug/console/autoCompleter.js
@@ -90,6 +90,15 @@ Firebug.JSAutoCompleter = function(textBox, completionBox, options)
};
/**
+ * Completely reset the auto-completer.
+ */
+ this.reset = function()
+ {
+ this.hide();
+ this.revertValue = null;
+ };
+
+ /**
* Hide completions for this expression (/completion base). Appending further
* characters to the variable name will not make completions appear, but
* adding, say, a semicolon and typing something else will.
@@ -813,6 +822,7 @@ Firebug.JSAutoCompleter = function(textBox, completionBox, options)
try
{
this.completionPopup.hidePopup();
+ this.selectedPopupElement = null;
}
catch (err)
{
@@ -1004,7 +1014,7 @@ function EditorJSAutoCompleter(box, completionBox, options)
var ac = new Firebug.JSAutoCompleter(box, completionBox, options);
this.destroy = Obj.bindFixed(ac.shutdown, ac);
- this.reset = Obj.bindFixed(ac.hide, ac);
+ this.reset = Obj.bindFixed(ac.reset, ac);
this.complete = Obj.bind(ac.complete, ac);
this.handleKeyPress = Obj.bind(ac.handleKeyPress, ac);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list