1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 02:28:00 +01:00

Fix more function formatting faux pas as per the style guide.

This commit is contained in:
Doug Kearns
2009-06-01 16:13:38 +10:00
parent cd3364197f
commit 64a9c9554c
12 changed files with 35 additions and 62 deletions

View File

@@ -612,8 +612,7 @@ function Hints() //{{{
function containsMatcher(hintString) //{{{
{
let tokens = tokenize(/\s+/, hintString);
return function (linkText)
{
return function (linkText) {
linkText = linkText.toLowerCase();
return tokens.every(function (token) linkText.indexOf(token) >= 0);
};
@@ -737,8 +736,7 @@ function Hints() //{{{
return true;
}
return function (linkText)
{
return function (linkText) {
if (hintStrings.length == 1 && hintStrings[0].length == 0)
return true;