Sha256: 5900398bf980875348b7acd8b9f65133aa636ecad5d8cacfcce057fc72c509e3
Contents?: true
Size: 654 Bytes
Versions: 2
Compression:
Stored size: 654 Bytes
Contents
# Wraps native jQuery event objects. class Event < `$.Event` def [](name) `#{self}[name]` end def current_target `$(#{self}.currentTarget)` end alias_native :default_prevented?, :isDefaultPrevented alias_native :prevent_default, :preventDefault def page_x `#{self}.pageX` end def page_y `#{self}.pageY` end alias_native :propagation_stopped?, :propagationStopped alias_native :stop_propagation, :stopPropagation alias_native :stop_immediate_propagation, :stopImmediatePropagation def target `$(#{self}.target)` end def type `#{self}.type` end def which `#{self}.which` end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
opal-jquery-0.0.4 | lib/assets/javascripts/opal/jquery/event.rb |
opal-jquery-0.0.3 | lib/opal-jquery/event.rb |