1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 11:04:00 +03:00

Enumerate the right property.

This commit is contained in:
Rob Rix 2015-10-21 16:35:39 -04:00
parent 5347b50ad3
commit 6d2f891a95

View File

@ -93,7 +93,7 @@
if (model.syntax instanceof Indexed) {
var element = document.createElement("ul");
for (i in model.syntax) {
for (i in model.values) {
element.appendChild(wrap("li", toDOM(model.syntax[i])));
}
return element;
@ -101,7 +101,7 @@
if (model.syntax instanceof Keyed) {
var element = document.createElement("dl");
for (k in model.syntax) {
for (k in model.values) {
var dt = document.createElement("dt");
dt.textContent = k;
element.appendChild(dt);