Sha256: b8b2864bc345967780946d1a35b38f3e205df6e38aadbd05d2ef5cd00063947f

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

module Browser; module DOM; class Event

class Clipboard < Event
  def self.supported?
    not $$[:ClipboardEvent].nil?
  end

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

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

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

  alias_native :data
  alias_native :type, :dataType
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/clipboard.rb