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:
parent
3206f13be0
commit
056e79f261
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user