Skip to content

Commit

Permalink
pass this in Template::ready to the callback
Browse files Browse the repository at this point in the history
  • Loading branch information
dodo committed Apr 24, 2012
1 parent 33139a2 commit 4e57b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xml.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class Builder extends EventEmitter
this

ready: (callback) =>
return callback?() if @closed is yes
return callback?.call(this) if @closed is yes
@once 'end', callback

# intern getter to let intern tag structure stay in sync with eg dom
Expand Down

0 comments on commit 4e57b3e

Please sign in to comment.