1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 16:33:03 +03:00

Reference the correct range.

This commit is contained in:
Rob Rix 2015-10-21 17:31:56 -04:00
parent ebe73eb227
commit 6dedcf2ea3

View File

@ -128,7 +128,7 @@
if (model instanceof Leaf) {
element = document.createElement("span");
if (model.source != null && model.range != null) {
element.textContent = model.source.substr(this.range[0], this.range[1]);
element.textContent = model.source.substr(model.range[0], model.range[1]);
}
// ?
}