Permalink
Browse files

handle builder as well

  • Loading branch information...
dodo committed Mar 25, 2012
1 parent 9133d9b commit 9acc21c8f21219f3759165b7c79ec3e29f7b8e9e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/dt-stream.coffee
View
@@ -85,6 +85,7 @@ class StreamAdapter
el._stream = new Entry el, parent
@opened_tags++
el._stream.write =>
+ return if el is el.builder
if el.closed is 'self'
@write prettify el, "<#{el.name}#{attrStr el.attrs}/>"
else
@@ -98,7 +99,7 @@ class StreamAdapter
onclose: (el) ->
el._stream.write =>
- unless el.closed is 'self'
+ unless el.closed is 'self' or el is el.builder
@write prettify el, "</#{el.name}>"
# call next callback of the registered 'ready' checker
el._stream_ready?()

0 comments on commit 9acc21c

Please sign in to comment.