Sha256: d9dee0df2eb8edad4ee25d93f08c30098876450441a706ff391d765c0fba5368

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 Bytes

Contents

module Browser; module DOM; class Event

class PageTransition < Event
  def self.supported?
    not $$[:PageTransitionEvent].nil?
  end

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

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

  alias_native :persisted?, :persisted
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/page_transition.rb