mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
Remove Indexed toDOM handling.
This commit is contained in:
parent
eabb27c5af
commit
692ae3be29
@ -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;
|
return element;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user