Sha256: 6d3286727621b9d2226445fa0a8afa5974de8c578d9197811ffb1cff804ef69a

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

module Browser; module DOM; class Event

class UI < Event
  class Definition < Definition
    def detail=(value)
      `#@native.detail = #{value}`
    end

    def view=(value)
      `#@native.view = #{value}`
    end
  end

  def self.create(name, &block)
    new(`new UIEvent(#{name}, #{Definition.new(&block)})`)
  end

  alias_native :detail
  alias_native :view
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/ui.rb