mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-16 10:23:32 +01:00
Fix use of reserved word "class" in template.completionRow.
This commit is contained in:
@@ -44,12 +44,12 @@ const template = {
|
|||||||
return <>{xml}</>;
|
return <>{xml}</>;
|
||||||
},
|
},
|
||||||
|
|
||||||
completionRow: function completionRow(item, class)
|
completionRow: function completionRow(item, highlightGroup)
|
||||||
{
|
{
|
||||||
if (typeof icon == "function")
|
if (typeof icon == "function")
|
||||||
icon = icon();
|
icon = icon();
|
||||||
|
|
||||||
if (class)
|
if (highlightGroup)
|
||||||
{
|
{
|
||||||
var text = item[0] || "";
|
var text = item[0] || "";
|
||||||
var desc = item[1] || "";
|
var desc = item[1] || "";
|
||||||
@@ -61,7 +61,7 @@ const template = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// <e4x>
|
// <e4x>
|
||||||
return <div highlight={class || "CompItem"} style="white-space: nowrap">
|
return <div highlight={highlightGroup || "CompItem"} style="white-space: nowrap">
|
||||||
<!-- The non-breaking spaces prevent empty elements
|
<!-- The non-breaking spaces prevent empty elements
|
||||||
- from pushing the baseline down and enlarging
|
- from pushing the baseline down and enlarging
|
||||||
- the row.
|
- the row.
|
||||||
|
|||||||
Reference in New Issue
Block a user