code: function (cb) {
  		var name = this.name,
  			data = JSON.parse(window.localStorage[name] || (window.localStorage[name] = '[]')),
  			res = cb.call(this, data);
  		if (res !== false) {
  			can.each(data, function (todo) {
  				delete todo.editing;
  			});
  			window.localStorage[name] = JSON.stringify(data);
  		}
  	}
docs: Implement local storage handling