Sha256: 782cb52b5ce342ec85715655ce9b4f3e35a18cc3d158c20d07ca14b2150d5d97
Contents?: true
Size: 667 Bytes
Versions: 1
Compression:
Stored size: 667 Bytes
Contents
module Browser; module DOM; class Event class DeviceOrientation < Event def self.supported? not $$[:DeviceOrientationEvent].nil? end class Definition < Definition def absolute=(value) `#@native.absolute = #{value}` end def alpha=(value) `#@native.alpha = #{value}` end def beta=(value) `#@native.beta = #{value}` end def gamma=(value) `#@native.gamma = #{value}` end end def self.create(name, &block) new(`new DeviceOrientationEvent(#{name}, #{Definition.new(&block)})`) end alias_native :absolute alias_native :alpha alias_native :beta alias_native :gamma 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/device_orientation.rb |