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

Test the right property, too.

This commit is contained in:
Rob Rix 2015-10-21 16:37:08 -04:00
parent 6d2f891a95
commit a9953d380b

View File

@ -91,7 +91,7 @@
return element;
}
if (model.syntax instanceof Indexed) {
if (model instanceof Indexed) {
var element = document.createElement("ul");
for (i in model.values) {
element.appendChild(wrap("li", toDOM(model.syntax[i])));
@ -99,7 +99,7 @@
return element;
}
if (model.syntax instanceof Keyed) {
if (model instanceof Keyed) {
var element = document.createElement("dl");
for (k in model.values) {
var dt = document.createElement("dt");
@ -110,7 +110,7 @@
return element;
}
if (model.syntax instanceof Leaf) {
if (model instanceof Leaf) {
var element = document.createElement("span");
// ?
return element;