<source><name>Hemi.storage.dom</name><project><name>Hemi JavaScript Framework</name><url-title>Hemi JavaScript Framework</url-title><url>/Hemi/</url></project><package><path>Hemi.storage</path><library>Hemi</library><description>A lightweight wrapper around the DOM Storage API.</description>
Legacy Package System

_js_package("org.cote.js");
Debug

Package("Hemi.storage");
Engine.Package("Hemi.storage");
Stand Alone Package System
- assumes HemiEngine.storage.js is first
var org  = {};
org.cote = {};
org.cote.js = {};
<static-class><name>dom</name><version>3.1.9</version><description>A conditional wrapper exposed based on browser support.</description>
preference is local, then global, then session

Sink the unsupported error when accessing via FileSystem
2011/02/24 - Remove global storage reference as it's no longer spec'd

s.preferred_storage = s.global_storage;
<method><name>getLength</name><return-value name="l" type="int">Number of keys.</return-value><description>Returns the number of keys currently stored.</description></method><method><name>removeItem</name><param name="n" type="String">Key name.</param><description>Removes the specified item from storage.</description></method><method><name>getItem</name><param name="n" type="String">Key name.</param><return-value name="v" type="String">Stored value.</return-value><description>Returns the stored value corresponding to the specified key.</description></method><method><name>setItem</name><param name="n" type="String">Key name.</param><param name="v" type="String">Value.</param><return-value name="b" type="bit">Bit indicating whether the value was stored.</return-value><description>Stores the supplied value at the specified key.</description></method><method><name>key</name><param name="i" type="int">Storage index.</param><return-value name="s" type="String">The key name.</return-value><description>Returns the key at the specified index.</description></method><method><name>clear</name><description>Empties the storage of all saved key/value pairs.</description></method>
[n] = v;
o.setItem(n,v);
o.setItem(n,v);
Not working at present

return o[document.domain].clear();
</static-class></package><index><description>A lightweight wrapper around the DOM Storage API.</description><url>Hemi_api.html</url><url-title>API Index</url-title></index></source>
