Skip to content
Browse files

bind show,hide,remove to the builder

  • Loading branch information...
1 parent 47bf7a5 commit 8da56adb4be6ac6e32f99f9df5720b1f4c0f58e0 @dodo committed Jun 7, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/xml.coffee
View
4 src/xml.coffee
@@ -280,6 +280,10 @@ class Tag extends EventEmitter
class Builder extends EventEmitter
constructor: (@opts = {}) ->
+ # methods
+ @show = @show.bind(this)
+ @hide = @hide.bind(this)
+ @remove = @remove.bind(this)
# values
@builder = this
@checkers = {} # all the middlewares that have to approve a new tag

0 comments on commit 8da56ad

Please sign in to comment.
Something went wrong with that request. Please try again.