mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44: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
|
/// Range -> Syntax a -> String, (a -> DOM) -> DOM
|
||||||
function rangeAndSyntaxToDOM(range, syntax, source, recur) {
|
function rangeAndSyntaxToDOM(range, syntax, source, recur) {
|
||||||
|
recur = recur || function (term) { return rangeAndSyntaxToDOM(term.range, term.unwrap, source); }
|
||||||
var element;
|
var element;
|
||||||
if (syntax.leaf != null) {
|
if (syntax.leaf != null) {
|
||||||
element = document.createElement("span");
|
element = document.createElement("span");
|
||||||
|
Loading…
Reference in New Issue
Block a user