From 6d13f4da8e163356d19690ab5c7029e05c780ce3 Mon Sep 17 00:00:00 2001 From: jez Date: Mon, 31 Jan 2011 15:35:00 +0800 Subject: Deactivate hintKeystrokeQueue. --- linkHints.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'linkHints.js') diff --git a/linkHints.js b/linkHints.js index 7627c1fc..888465af 100644 --- a/linkHints.js +++ b/linkHints.js @@ -300,7 +300,6 @@ var linkHints = { that.hintMarkerContainingDiv.parentNode.removeChild(that.hintMarkerContainingDiv); that.hintMarkerContainingDiv = null; that.hintMarkers = []; - that.hintKeystrokeQueue = []; document.removeEventListener("keydown", that.onKeyDownInMode, true); document.removeEventListener("keyup", that.onKeyUpInMode, true); that.modeActivated = false; @@ -401,7 +400,12 @@ var alphabetHints = { }); } return { 'linksMatched': linksMatched }; + }, + + deactivate: function() { + this.hintKeystrokeQueue = []; } + }; var filterHints = { @@ -534,6 +538,7 @@ var filterHints = { }, deactivate: function(delay, callback) { + this.hintKeystrokeQueue = []; this.linkTextKeystrokeQueue = []; this.labelMap = {}; } -- cgit v1.2.3