1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/prototype/UI/term.js

15 lines
264 B
JavaScript
Raw Normal View History

2015-10-27 18:08:28 +03:00
function termFromJSON(json) {
return new Term({
extract: json.extract,
unwrap: new Syntax(json.unwrap, function(x) {
return termFromJSON(x);
})
});
}
function Term(object) {
2015-10-29 23:27:41 +03:00
this.extract = object.extract;
2015-10-27 18:08:28 +03:00
this.unwrap = object.unwrap;
return this;
}