mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 11:24:11 +01:00
Fix use of reserved word "class" in template.completionRow.
This commit is contained in:
@@ -44,12 +44,12 @@ const template = {
|
||||
return <>{xml}</>;
|
||||
},
|
||||
|
||||
completionRow: function completionRow(item, class)
|
||||
completionRow: function completionRow(item, highlightGroup)
|
||||
{
|
||||
if (typeof icon == "function")
|
||||
icon = icon();
|
||||
|
||||
if (class)
|
||||
if (highlightGroup)
|
||||
{
|
||||
var text = item[0] || "";
|
||||
var desc = item[1] || "";
|
||||
@@ -61,7 +61,7 @@ const template = {
|
||||
}
|
||||
|
||||
// <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
|
||||
- from pushing the baseline down and enlarging
|
||||
- the row.
|
||||
|
||||
Reference in New Issue
Block a user