Sha256: ec3bd4e72360c1aa2be8e0b582cc6e9faba6b09172c445752c8b28e987f55721

Contents?: true

Size: 663 Bytes

Versions: 2

Compression:

Stored size: 663 Bytes

Contents

# backtick_javascript: true

module Browser; class Event

class Storage < Event
  handles 'storage'

  def self.supported?
    Browser.supports? 'Event.Storage'
  end

  class Definition < Definition
    alias_native :key=
    alias_native :new=, :newValue=
    alias_native :old=, :oldValue=
    alias_native :area=, :storageArea=
    alias_native :url=
  end

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

  alias_native :key
  alias_native :new, :newValue
  alias_native :old, :oldValue
  alias_native :area, :storageArea
  alias_native :url
end

end; end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opal-browser-0.3.5 opal/browser/event/storage.rb
opal-browser-0.3.4 opal/browser/event/storage.rb