couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-2432) Move local storage getter + setter in utils.js
Date Tue, 04 Nov 2014 10:09:34 GMT


ASF subversion and git services commented on COUCHDB-2432:

Commit 38ad6907987d7089b61a68bf58d6e0b28be744f1 in couchdb-fauxton's branch refs/heads/master
from [~benkeen]
[;h=38ad690 ]

Added getter/setter utils.js methods for local storage

This is primarily proactive; there are only a couple of places in the code
that use local storage, but I wanted to nip it in the bud now and use
helpers instead.

Closes COUCHDB-2432

> Move local storage getter + setter in utils.js
> ----------------------------------------------
>                 Key: COUCHDB-2432
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Fauxton
>            Reporter: Ben Keen
>            Assignee: Ben Keen
> We're using local storage in a couple of places by explicitly calling localStorage.setItem,
getItem. There's a benefit to moving wrapping these into utility methods: 
> - can ward against problems like local storage being full or not available in browser
> - allows us to get/set complex objects

This message was sent by Atlassian JIRA

View raw message