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

And finally, retrieve elements from the right property.

This commit is contained in:
Rob Rix 2015-10-21 16:38:02 -04:00
parent a9953d380b
commit 909e32d1eb

View File

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