1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 13:07:59 +01:00

Fix tab-completion again

This commit is contained in:
Kris Maglione
2009-01-09 14:02:36 -05:00
parent 2f2ea98a9c
commit 9618547d47
3 changed files with 15 additions and 13 deletions

View File

@@ -847,7 +847,7 @@ function Buffer() //{{{
}, },
/** /**
* @property {Object} The last focused input field in the buffer. Used * @property {Node} The last focused input field in the buffer. Used
* by the "gi" key binding. * by the "gi" key binding.
*/ */
get lastInputField() get lastInputField()
@@ -1148,7 +1148,7 @@ function Buffer() //{{{
}, },
/** /**
* @property {Object} The current document's selection controller. * @property {nsISelectionController} The current document's selection controller.
*/ */
get selectionController() getBrowser().docShell get selectionController() getBrowser().docShell
.QueryInterface(Ci.nsIInterfaceRequestor) .QueryInterface(Ci.nsIInterfaceRequestor)
@@ -1158,7 +1158,7 @@ function Buffer() //{{{
/** /**
* Saves a page link to disk. * Saves a page link to disk.
* *
* @param {Object} elem The page link to save. * @param {HTMLAnchorElement} elem The page link to save.
* @param {boolean} skipPrompt Whether to open the "Save Link As..." dialog * @param {boolean} skipPrompt Whether to open the "Save Link As..." dialog
*/ */
saveLink: function (elem, skipPrompt) saveLink: function (elem, skipPrompt)
@@ -1371,7 +1371,7 @@ function Buffer() //{{{
/** /**
* Displays information about the specified element. * Displays information about the specified element.
* *
* @param {Object} elem * @param {Node} elem
*/ */
showElementInfo: function (elem) showElementInfo: function (elem)
{ {

View File

@@ -434,7 +434,7 @@ function CommandLine() //{{{
this.itemList.selectItem(idx); this.itemList.selectItem(idx);
}, },
ntab: 0, tabs: [],
tab: function tab(reverse) tab: function tab(reverse)
{ {
@@ -443,12 +443,13 @@ function CommandLine() //{{{
if (this.context.waitingForTab || this.wildIndex == -1) if (this.context.waitingForTab || this.wildIndex == -1)
this.complete(true, true); this.complete(true, true);
this.ntab++; this.tabs.push(reverse);
if (this.waiting) if (this.waiting)
return; return;
while (this.ntab--) while (this.tabs.length)
{ {
reverse = this.tabs.pop();
switch (this.wildtype.replace(/.*:/, "")) switch (this.wildtype.replace(/.*:/, ""))
{ {
case "": case "":

View File

@@ -296,8 +296,8 @@ const util = { //{{{
/** /**
* Generates an Asciidoc help entry. * Generates an Asciidoc help entry.
* *
* @param {Object} obj A liberator <b>Command</b>, <b>Mapping</b> or * @param {Command|Mapping|Option} obj A liberator <b>Command</b>,
* <b>Option</b> object * <b>Mapping</b> or <b>Option</b> object
* @param {string} extraHelp Extra help text beyond the description. * @param {string} extraHelp Extra help text beyond the description.
* @returns {string} * @returns {string}
*/ */
@@ -360,7 +360,7 @@ const util = { //{{{
* *
* @param {string} url * @param {string} url
* @param {function} callback * @param {function} callback
* @returns {Object} * @returns {XMLHttpRequest}
*/ */
httpGet: function httpGet(url, callback) httpGet: function httpGet(url, callback)
{ {
@@ -426,10 +426,10 @@ const util = { //{{{
}, },
/** /**
* Converts a URI string into an URI object. * Converts a URI string into a URI object.
* *
* @param {string} uri * @param {string} uri
* @returns {Object} * @returns {nsIURI}
*/ */
// FIXME: createURI needed too? // FIXME: createURI needed too?
newURI: function (uri) newURI: function (uri)
@@ -663,7 +663,8 @@ const util = { //{{{
* *
* @param {Node} node * @param {Node} node
* @param {Document} doc * @param {Document} doc
* @param {Object} nodes * @param {Object} nodes If present, nodes with the "key" attribute are
* stored here, keyed to the value thereof.
* @returns {Node} * @returns {Node}
*/ */
xmlToDom: function xmlToDom(node, doc, nodes) xmlToDom: function xmlToDom(node, doc, nodes)