andris9/jStorage — Issue #19: Risky cache behaviour.
Author: MatveiFisenko
Created: 2011-11-06 13:46:16+00:00
State: open

Internal variable _storage is used for caching purposes.
Suppose this example:
```javascript
var b = {
abc: function(abc) {
return abc + '!';
}
};

$.jStorage.set('b', b);

var b2 = $.jStorage.get('b');
log(b2.abc(123)); //shows '123! ', but should be 'error - no method abc'.
```

It gives the user the false understanding that he can store functions in storage.
But we understand, that in browser storage his object has no 'abc' method.

I think it is better to make cache real cache :)