egilkh

Results 41 comments of egilkh

Hey! Could you provide an example use case? ``` // Setup $scope.$storage = $localStorage.$default({ counter: 42 }); $scope.$storage.counter = 142; $scope.$storage.$reset(); // Now the counter is 42 again. ``` Something...

It does use the eventlistener from the the storage API. If that does propagate changes between tabs then you should see changes to prefixed keys end back up in ngStorage....

Is it the same API and provides the same functionality as localStorage?

Hey, Thanks for the comment! Yes this should be easily doable as we already implement the same for serialization/deserialization. And it does make sense. I'll look into it, if you...

Should safeguard parsing of key to stop the exploding from being a crash. But that would not stop others from creating the explosion in the first place. As we have...

> What's to prevent attackers from replacing the ngStorage-sidebar (prefixed or otherwise) storage entry with external tools? There is no such prevention. Unless you create your own serializer / deserializer...

Agreed. I'll put safeguards (try/catch) to the serialize / deserialize parts. I didn't mean to close the issue. Re-opening.

A lot of whitespace changes in this PR. I'll clean it up and merge it once I get my commit rights back. Been away for a while.

Alright, thanks for the report :) Yes, we'll find some way to make this work. I've been swamped last weeks with work. But I'll get on this and all the...

I think the best (and should maybe fix IE event handling) would be to have ngStorage's $localStorage and ngStorage's event handling use the same debounce for updating it's values. As...