Sha256: d1cb5b5b1c8e7557f6eac01f958147efe0fb482b0f3cf8f6037aaa734e11255a

Contents?: true

Size: 241 Bytes

Versions: 1

Compression:

Stored size: 241 Bytes

Contents

module Browser; module DOM; class Event

class Sensor < Event
  def self.supported?
    not $$[:SensorEvent].nil?
  end

  def self.create(name, &block)
    new(`new SensorEvent(#{name}, #{Definition.new(&block)})`)
  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/sensor.rb