Sha256: e5fd10a239dfd6cb83092b74f9bd37dbcaf863aa44b07cdb8cc02b56801fbee2
Contents?: true
Size: 425 Bytes
Versions: 1
Compression:
Stored size: 425 Bytes
Contents
module Browser; module DOM; class Event class Focus < UI def self.supported? not $$[:FocusEvent].nil? end class Definition < UI::Definition def related=(elem) `#@native.relatedTarget = #{Native.try_convert(elem)}` end end def self.create(name, &block) new(`new FocusEvent(#{name}, #{Definition.new(&block)})`) end def related DOM(`#@native.relatedTarget`) end end end; end; end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opal-browser-0.1.0.beta1 | opal/browser/dom/event/focus.rb |