Skip to content

Instantly share code, notes, and snippets.

@wallynm
wallynm / gist:169216c5424f23d9aa82
Created October 7, 2015 00:35
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));
},