Sha256: 6ec5775295dd4f555a6206968580aa272d4388389aed5942699b5c910a059378

Contents?: true

Size: 278 Bytes

Versions: 2

Compression:

Stored size: 278 Bytes

Contents

module Browser; class Event

class Sensor < Event
  def self.supported?
    Browser.supports? 'Event.Sensor'
  end

  if Browser.supports? 'Event.constructor'
    def self.construct(name, desc)
      `new SensorEvent(#{name}, #{desc})`
    end
  end if supported?
end

end; end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
diamonds-0.1.5 lib/diamonds/opal/browser/event/sensor.rb
opal-browser-0.2.0 opal/browser/event/sensor.rb