Skip to content

Commit 23c218a

Browse files
committed
fixes #541
1 parent 8fc5b92 commit 23c218a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/builder.coffee

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class exports.Builder
2828
@options[key] = value for own key, value of opts
2929

3030
buildObject: (rootObj) ->
31+
@build(rootObj).end(@options.renderOpts)
32+
33+
build: (rootObj) ->
3134
attrkey = @options.attrkey
3235
charkey = @options.charkey
3336

@@ -99,4 +102,4 @@ class exports.Builder
99102
headless: @options.headless
100103
allowSurrogateChars: @options.allowSurrogateChars)
101104

102-
render(rootElement, rootObj).end(@options.renderOpts)
105+
render(rootElement, rootObj)

0 commit comments

Comments
 (0)