1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 11:04:00 +03:00

Default recur parameter.

This commit is contained in:
Rob Rix 2015-10-23 20:23:35 -04:00
parent c51d66fe8d
commit 38ec0850c2

View File

@ -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");