3 ms·
The problem is your complete unwillingness to compromise and to make it easier for people to upgrade an existing app. The way that silent works now should be i
by robinduckett 15y ago
The problem is your complete unwillingness to compromise and to make it easier for people to upgrade an existing app.
The way that silent works now should be it's own option, say "defer". Because you're deferring the changes until a later date. It could even be called delay or later. Whatever it is called, it is in no way silent anymore.
My proposal is to add a new option, mute, which bypasses the change events and causes the attribute to change but does not trigger change:attribute.
Edit: https://github.com/documentcloud/backbone/pull/981 https://github.com/documentcloud/backbone/pull/981
- jashkenas 15y agoWhile I appreciate the effort and persistence, having {silent: true, mute: true} be part of the model API is definitely not the direction that the Backbone API should be going. That said, what you do with your copy of backbone.js in your own project is your business. I'd highly encourage you to extend your version with your preferred behavior for "silent" -- in fact, the source is annotated to make this sort of thing easier for folks that find the need.