Sha256: e4a8da1420770e7aaf4f6ae5df2a42d2b9c5ac13df477eeedbbb564147a604d7
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
module Browser; module DOM; class Event class Animation < Event def self.supported? not $$[:AnimationEvent].nil? end class Definition < Definition def animation=(value) `#@native.animationName = #{value}` end def elapsed=(value) `#@native.elapsedTime = #{value}` end end def self.create(name, &block) new(`new AnimationEvent(#{name}, #{Definition.new(&block)})`) end alias_native :name, :animationName alias_native :elapsed, :elapsedTime 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/animation.rb |