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

Rename the syntax field to unwrap.

This commit is contained in:
Rob Rix 2015-10-23 16:56:39 -04:00
parent 3206f13be0
commit 056e79f261

View File

@ -89,7 +89,7 @@
function Term(json) {
this.range = json.extract;
this.syntax = syntax(json.unwrap, function(x) { return new Term(x); });
this.unwrap = syntax(json.unwrap, function(x) { return new Term(x); });
return this;
}
@ -125,7 +125,7 @@
if (model instanceof Term) {
element = document.createElement("div");
element.classList.add("term");
element.appendChild(toDOM(model.syntax));
element.appendChild(toDOM(model.unwrap));
}
if (model instanceof Diff) {