mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 05:42:29 +02:00
Fix use of reserved word "class" in template.completionRow.
This commit is contained in:
1 parent
ad9e9582f2
commit
7e4a0096de
1 file changed
+3
-3
@@ -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