Skip to content

Commit be60543

Browse files
committedJan 26, 2014
dom/event: remove old selector in #on!
1 parent 095887d commit be60543

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎opal/browser/dom/event/base.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ def on(name, selector = nil, &block)
145145
def on!(name, &block)
146146
raise ArgumentError, 'no block has been given' unless block
147147

148-
name = Event.name_for(name)
149-
callback = Callback.new(self, name, selector, &block)
148+
name = Event.name_for(name)
149+
callback = Callback.new(self, name, &block)
150150
callbacks.push(callback)
151151

152152
attach!(callback)

0 commit comments

Comments
 (0)
Please sign in to comment.