mirror of
https://github.com/github/semantic.git
synced 2024-11-25 02:58:36 +03:00
Default recur parameter.
This commit is contained in:
parent
c51d66fe8d
commit
38ec0850c2
@ -82,6 +82,7 @@
|
||||
|
||||
/// Range -> Syntax a -> String, (a -> DOM) -> DOM
|
||||
function rangeAndSyntaxToDOM(range, syntax, source, recur) {
|
||||
recur = recur || function (term) { return rangeAndSyntaxToDOM(term.range, term.unwrap, source); }
|
||||
var element;
|
||||
if (syntax.leaf != null) {
|
||||
element = document.createElement("span");
|
||||
|
Loading…
Reference in New Issue
Block a user