Sha256: 533def27d5eee86ca809bdbca7a80d4901fc0e4e81940a9f7d2caf276d8b8e56

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 Bytes

Contents

module Browser; module DOM; class Event

class PopState < Event
  def self.supported?
    not $$[:PopStateEvent].nil?
  end

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

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

  alias_native :state
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/pop_state.rb