Perhaps this improves privacy?  By overwriting old value?

-------- Original message --------
From: Steven Allen <notifications@github.com> 
Date: 12/17/2013  4:43 PM  (GMT-05:00) 
To: haystack/listit <listit@noreply.github.com> 
Subject: Re: [listit] trash bin chrome version BETA (#217) 
 
In src/js/views/trashbin.js:

> +
> +    events: {
> +      'click .restore-trash-note': 'restore',
> +      'click .destroy-trash-note': 'destroy'
> +    },
> +
> +    restore: function(event){
> +      L.notebook.untrashNote(this.model, {user: true});
> +      this.$el.stop().fadeOut({queue: false}, 200).slideUp(300, function() {
> +        el.remove();
> +      });
> +    },
> +
> +    destroy: function(event){
> +      this.model.attributes.contents = "";
> +      this.model.attributes.deleted = true;
Why are you doing this? While yes, the server simply clears the note contents, there's no reason to mirror that design problem on the client. As I was telling you before, just keep a second record of destroyed note IDs instead of cluttering the deletedNotes collection.

—
Reply to this email directly or view it on GitHub.