lib/assets/javascripts/opal/jquery/event.rb in opal-jquery-0.0.5 vs lib/assets/javascripts/opal/jquery/event.rb in opal-jquery-0.0.6
- old
+ new
@@ -8,9 +8,10 @@
`$(#{self}.currentTarget)`
end
alias_native :default_prevented?, :isDefaultPrevented
+ # Stops propagation and prevents default action.
def kill
stop_propagation
prevent_default
end