diff --git a/README.md b/README.md index 0a88109..ca09851 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@ -# memorystorage v0.9.3 +# memorystorage v0.9.4 Memory-backed storage that implements the [Web Storage API](http://www.w3.org/TR/webstorage/), making it a drop-in replacement for `localStorage` and `sessionStorage` in environments where these are not available. [Project website](http://download.github.io/memorystorage) ## Download -* [memorystorage.js](https://cdn.rawgit.com/download/memorystorage/0.9.3/src/memorystorage.js) (~3kB, commented) -* [memorystorage.min.js](https://cdn.rawgit.com/download/memorystorage/0.9.3/dist/memorystorage.min.js) (~2kB, minified) -* [memorystorage.min.js.map](https://cdn.rawgit.com/download/memorystorage/0.9.3/dist/memorystorage.min.js.map) (~2kB, debug map file) +* [memorystorage.js](https://cdn.rawgit.com/download/memorystorage/0.9.4/src/memorystorage.js) (~3kB, commented) +* [memorystorage.min.js](https://cdn.rawgit.com/download/memorystorage/0.9.4/dist/memorystorage.min.js) (~2kB, minified) +* [memorystorage.min.js.map](https://cdn.rawgit.com/download/memorystorage/0.9.4/dist/memorystorage.min.js.map) (~2kB, debug map file) ## Include on your page `memorystorage` can be used directly from CDN, or from a local script file. ### CDN ```xml - + ``` ### Local script file diff --git a/dist/memorystorage.min.js b/dist/memorystorage.min.js index f19c6a0..30ccc1c 100644 --- a/dist/memorystorage.min.js +++ b/dist/memorystorage.min.js @@ -1,3 +1,3 @@ -/*! [memorystorage 0.9.3](http://download.github.io/memorystorage) Copyright 2015 by [Stijn de Witt](http://StijnDeWitt.com). Some rights reserved. License: [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/) */ +/*! [memorystorage 0.9.4](http://download.github.io/memorystorage) Copyright 2015 by [Stijn de Witt](http://StijnDeWitt.com). Some rights reserved. License: [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/) */ !function(u,m,d){"function"==typeof define&&define.amd?define(d):"object"==typeof exports?module.exports=d():u[m]=d()}(this,"MemoryStorage",function(){"use strict";function MemoryStorage(b){this.id=b||"global",a[this.id]||(a[this.id]={});var c=Object.keys(a[this.id]);Object.defineProperty(this,"length",{enumerable:!0,get:function(){return c.length}}),this.getItem=function(b){return a[this.id][b]},this.setItem=function(b,e){b in a[this.id]||c.push(b),a[this.id][b]=e},this.removeItem=function(b){b in a[this.id]&&(c.splice(c.indexOf(b),1),delete a[this.id][b])},this.key=function(a){return a>=0&&a