mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:42:27 +01:00
replace some $_ variables - identifiers starting with "$" are reserved
This commit is contained in:
@@ -79,7 +79,7 @@ liberator.Completion = function () //{{{
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
substrings = substrings.filter(function ($_) complist[j].indexOf($_) >= 0);
|
substrings = substrings.filter(function (s) complist[j].indexOf(s) >= 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -117,7 +117,7 @@ liberator.Completion = function () //{{{
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
substrings = substrings.filter(function ($_) complist[j].indexOf($_) == 0);
|
substrings = substrings.filter(function (s) complist[j].indexOf(s) == 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -195,7 +195,7 @@ liberator.Completion = function () //{{{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!filter)
|
if (!filter)
|
||||||
return [0, items.map(function ($_) [$_[0][0], $_[1]])];
|
return [0, items.map(function (i) [i[0][0], i[1]])];
|
||||||
|
|
||||||
return [0, buildLongestCommonSubstring(items, filter)];
|
return [0, buildLongestCommonSubstring(items, filter)];
|
||||||
},
|
},
|
||||||
@@ -577,7 +577,7 @@ liberator.Completion = function () //{{{
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
substrings = substrings.filter(function ($_) url.indexOf($_) >= 0);
|
substrings = substrings.filter(function (s) url.indexOf(s) >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
filtered.push(elem);
|
filtered.push(elem);
|
||||||
|
|||||||
Reference in New Issue
Block a user