diff --git a/README.md b/README.md index 6cdbcd8..2852902 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ -# memorystorage v0.9.1 +# memorystorage v0.9.2 Memory-backed storage object that implements the [Web Storage API](http://www.w3.org/TR/webstorage/). ## Download -* [memorystorage.js](https://cdn.rawgit.com/download/memorystorage/0.9.1/src/memorystorage.js) (~3kB, commented) -* [memorystorage.min.js](https://cdn.rawgit.com/download/memorystorage/0.9.1/dist/memorystorage.min.js) (~2kB, minified) -* [memorystorage.min.js.map](https://cdn.rawgit.com/download/memorystorage/0.9.1/dist/memorystorage.min.js.map) (~2kB, debug map file) +* [memorystorage.js](https://cdn.rawgit.com/download/memorystorage/0.9.2/src/memorystorage.js) (~3kB, commented) +* [memorystorage.min.js](https://cdn.rawgit.com/download/memorystorage/0.9.2/dist/memorystorage.min.js) (~2kB, minified) +* [memorystorage.min.js.map](https://cdn.rawgit.com/download/memorystorage/0.9.2/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 b60c408..5550618 100644 --- a/dist/memorystorage.min.js +++ b/dist/memorystorage.min.js @@ -1,3 +1,3 @@ -/*! [memorystorage 0.9.1](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.2](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