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

Source formatting fixes *yawn*.

This commit is contained in:
Doug Kearns
2009-04-30 22:09:08 +10:00
parent c65f88f8a2
commit 6b9564635a
8 changed files with 31 additions and 26 deletions

View File

@@ -152,10 +152,10 @@ function Hints() //{{{
// <input type="hidden"> Never gets here
// <select> Use the text of the selected item or label or name
text = "";
let type = elem.type ? elem.type.toLowerCase() : "";
let type = elem.type ? elem.type.toLowerCase() : "";
if (tagname == "input" && (type == "submit" || type == "button" || type == "reset"))
return [elem.value, false]
return [elem.value, false]
else
{
for each (let option in options["hintinputs"].split(","))
@@ -645,12 +645,12 @@ function Hints() //{{{
{
let hintStrings = tokenize(/\s+/, hintString);
let wordSplitRegex = RegExp(options["wordseparators"]);
/**
* Match a set of characters to the start of words.
*
* What the **** does this do? --Kris
* This function matches hintStrings like 'hekho' to links
* This function matches hintStrings like 'hekho' to links
* like 'Hey Kris, how are you?' -> [HE]y [K]ris [HO]w are you
* --Daniel
*
@@ -716,7 +716,7 @@ function Hints() //{{{
*
* @param {Array(String)} strings The strings to search for.
* @param {Array(String)} words The words to search in.
* @param {boolean} allowWordOverleaping Whether matches may be
* @param {boolean} allowWordOverleaping Whether matches may be
* non-contiguous.
*
* @return boolean Whether all the strings matched.