angular-locker icon indicating copy to clipboard operation
angular-locker copied to clipboard

clean() does not work on 'session' driver and namespace with a dot

Open RhonanMS opened this issue 9 years ago • 1 comments

I am using clean() to remove all values from a given namespace. However, if the namespace contains a dot within it's name (e.g. 'test.namespace'), on my Chrome the namespace is not cleared of its values afterwards.

The following test case should demonstrate the problem:

locker.driver('session').namespace('test.namespace').put('test', 'testvalue'); locker.driver('session').namespace('test.namespace').clean();

In Chrome, the resource view for the session storage returns the following afterwards: 'test.namespace.test' => 'testvalue'

Could it be that the dotted namespace screws up the cleaning algorithm?

The version used is 2.0.4

RhonanMS avatar Feb 19 '16 16:02 RhonanMS

Hmm.. I will take a look into it, Thanks

tymondesigns avatar Feb 19 '16 23:02 tymondesigns