Skip to content

Commit

Permalink
data event has el as first param
Browse files Browse the repository at this point in the history
  • Loading branch information
dodo committed Feb 28, 2012
1 parent d30b7c9 commit 7e72476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/template.coffee
Expand Up @@ -89,7 +89,7 @@ class Template extends EventEmitter
# write doctype
if opts.doctype and (dt = doctype[d]?(opts))
dt += "\n" if opts.pretty
@xml.emit 'data', dt
@xml.emit 'data', @xml, dt
# templating process ...
if typeof template is 'function'
template.call @xml
Expand Down

0 comments on commit 7e72476

Please sign in to comment.