Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dom/event: remove old selector in #on!
  • Loading branch information
meh committed Jan 26, 2014
1 parent 095887d commit be60543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opal/browser/dom/event/base.rb
Expand Up @@ -145,8 +145,8 @@ def on(name, selector = nil, &block)
def on!(name, &block)
raise ArgumentError, 'no block has been given' unless block

name = Event.name_for(name)
callback = Callback.new(self, name, selector, &block)
name = Event.name_for(name)
callback = Callback.new(self, name, &block)
callbacks.push(callback)

attach!(callback)
Expand Down

0 comments on commit be60543

Please sign in to comment.