1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00

Correct Syntax.Keyed mapping.

This commit is contained in:
Rob Rix 2015-10-23 19:19:22 -04:00
parent be6b72cf00
commit 62000715e8

View File

@ -152,7 +152,7 @@
Syntax.prototype.map = function(transform) {
if (this.leaf != null) { return new Syntax({ leaf: this.leaf }, transform); }
if (this.indexed != null) { return new Syntax({ indexed: this.indexed }, transform); }
if (this.keyed != null) { return new Syntax({ keyed: this.keyed }, transform); }
if (this.keyed != null) { return new Syntax({ keyed: this.keyed.values }, transform); }
}
function diffFromJSON(json) {