{"action":"created","issue":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/829","labels_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/829/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/829/comments","events_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/829/events","html_url":"https://github.com/tgriesser/bookshelf/issues/829","id":94948161,"number":829,"title":"\"unset\" doesnt work as it expected on event saving when the object is updated","user":{"login":"rkmax","id":395707,"avatar_url":"https://avatars.githubusercontent.com/u/395707?v=3","gravatar_id":"","url":"https://api.github.com/users/rkmax","html_url":"https://github.com/rkmax","followers_url":"https://api.github.com/users/rkmax/followers","following_url":"https://api.github.com/users/rkmax/following{/other_user}","gists_url":"https://api.github.com/users/rkmax/gists{/gist_id}","starred_url":"https://api.github.com/users/rkmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkmax/subscriptions","organizations_url":"https://api.github.com/users/rkmax/orgs","repos_url":"https://api.github.com/users/rkmax/repos","events_url":"https://api.github.com/users/rkmax/events{/privacy}","received_events_url":"https://api.github.com/users/rkmax/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tgriesser/bookshelf/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-07-14T13:45:13Z","updated_at":"2015-07-16T12:05:54Z","closed_at":"2015-07-16T11:47:37Z","body":"When i'm going to save a object (update or create) I remove some properties, example\r\n\r\n```js\r\nthis.on('saving', Promise.method(function(model, attrs, options) {\r\n   if (mycondition) {\r\n     model.unset(key);\r\n   }\r\n}));\r\n```\r\nthe previous code must be run when the object is created or updated, but for some reason when the object going to be updated i have to an extra delete\r\n\r\n    detele attrs[key];\r\n\r\nThis is a bug?"},"comment":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/comments/121939226","html_url":"https://github.com/tgriesser/bookshelf/issues/829#issuecomment-121939226","issue_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/829","id":121939226,"user":{"login":"rhys-vdw","id":822105,"avatar_url":"https://avatars.githubusercontent.com/u/822105?v=3","gravatar_id":"","url":"https://api.github.com/users/rhys-vdw","html_url":"https://github.com/rhys-vdw","followers_url":"https://api.github.com/users/rhys-vdw/followers","following_url":"https://api.github.com/users/rhys-vdw/following{/other_user}","gists_url":"https://api.github.com/users/rhys-vdw/gists{/gist_id}","starred_url":"https://api.github.com/users/rhys-vdw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhys-vdw/subscriptions","organizations_url":"https://api.github.com/users/rhys-vdw/orgs","repos_url":"https://api.github.com/users/rhys-vdw/repos","events_url":"https://api.github.com/users/rhys-vdw/events{/privacy}","received_events_url":"https://api.github.com/users/rhys-vdw/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T12:05:54Z","updated_at":"2015-07-16T12:05:54Z","body":"Well I think it's probably safest for now to handle the `attrs` argument as you were. This is what I've done in the past. I'll revisit this when we go over #814."}}