Permalink
Browse files

Fixed some spelling mistakes, also removed the double JSON.stringify(…

…) on the saving of an value as this was just a dumb mistake :)
  • Loading branch information...
John Clarke
John Clarke committed Mar 22, 2012
1 parent c06fbd8 commit 711d814315d6a15ac583729fe4dbd90ab573c8f8
Showing with 3 additions and 3 deletions.
  1. +3 −3 localstorage.js
View
@@ -19,9 +19,9 @@ utils.storage = {
_debug: false,
/**
- * Sorage variable indicating whether the storage engine is active or not
+ * Storage variable indicating whether the storage engine is active or not
* Default is off. Its better to have it stored as a variable, otherwise you will end up
- * spamming the poor DOM Window engine with functino requests everytime and could lead to poor
+ * spamming the poor DOM Window engine with function requests everytime and could lead to poor
* memory handling
*/
_enabled: false,
@@ -99,7 +99,7 @@ utils.storage = {
console.log('Setting value for %s', this._namespace + key);
}
value = JSON.stringify(value); // Store items as JSON
- localStorage.setItem(this._namespace + key, JSON.stringify(value));
+ localStorage.setItem(this._namespace + key, value);
return true;
}catch( e ){
return false;

0 comments on commit 711d814

Please sign in to comment.