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

Remove Indexed toDOM handling.

This commit is contained in:
Rob Rix 2015-10-23 18:41:29 -04:00
parent eabb27c5af
commit 692ae3be29

View File

@ -121,26 +121,6 @@
}
}
if (model instanceof Indexed) {
element = document.createElement("ul");
if (model.source != null && model.range != null) {
var previous = model.range[0];
for (i in model.values) {
var value = model.values[i];
element.appendChild(document.createTextNode(model.source.substr(previous, value.range[0] - previous)));
element.appendChild(wrap("li", toDOM(value)));
previous = value.range[0] + value.range[1];
}
element.appendChild(document.createTextNode(model.source.substr(previous, model.range[0] + model.range[1] - previous)));
} else {
for (i in model.values) {
element.appendChild(wrap("li", toDOM(model.values[i])));
}
}
}
}
}
return element;
}