Sha256: a2842e93f8e8879ec5f2a6b3ac979c143f4e568e15529430903da44302c20812
Contents?: true
Size: 744 Bytes
Versions: 1
Compression:
Stored size: 744 Bytes
Contents
module Browser; module DOM; class Event class Storage < Event def self.supported? not $$[:StorageEvent].nil? end class Definition < Definition def key=(value) `#@native.key = #{value}` end def new=(value) `#@native.newValue = #{value}` end def old=(value) `#@native.oldValue = #{value}` end def area=(value) `#@native.storageArea = #{value}` end def url=(value) `#@native.url = #{value}` end end def self.create(name, &block) new(`new StorageEvent(#{name}, #{Definition.new(&block)})`) end alias_native :key alias_native :new, :newValue alias_native :old, :oldValue alias_native :area, :storageArea alias_native :url 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/storage.rb |