Skip to content

Instantly share code, notes, and snippets.

@MAMISHO
MAMISHO / gist:c4c9e82ac996b20a493473a077af0670
Created March 2, 2018 23:51 — forked from wallynm/gist:169216c5424f23d9aa82
Storage - localStorage wrapper for enyo 2
enyo.kind({
name: "Storage",
kind: "Component",
statics: {
/* Set the value of item[key] to the stringified version of obj. */
set: function(name, obj){
localStorage.setItem(name, JSON.stringify(obj));
},