Save to localStorage/uri on editor key debounce

This commit is contained in:
Berkeley Martinez
2015-11-21 20:30:30 -08:00
parent fe659b20f4
commit 83ad2e14eb
3 changed files with 19 additions and 9 deletions

View File

@@ -19,8 +19,8 @@ window.common = (function(global) {
return '' + localStorage.getItem(key + 'Val');
},
isAlive: function() {
var val = this.getStoredValue();
isAlive: function(key) {
var val = this.getStoredValue(key);
return val !== 'null' &&
val !== 'undefined' &&
(val && val.length > 0);