1
0
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:
Doug Kearns
2009-05-11 20:13:45 +10:00
parent ad9e9582f2
commit 7e4a0096de

View File

@@ -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.