Closed splars closed 8 years ago
This is really important in the case of reset or cancel, especially when using stickit... This is a really good idea
Hey @delambo, any chance you have time to respond to this pull request?
Thanks. I think this would be a good change. Can we also change the api so that resetAttributes
takes an options
object which is passed into the call to set: this.set(this._originalAttrs, options);
.
Hi @delambo, would it be possible to merge this pull request? I want to use this excellent plugin with stickit, but this is causing an issue where the view does not update when resetAttributes is called. Many many thanks!
Sorry for the delay, and thanks for the help!
@delambo Hero, thank you very much! :)
Model.set() will trigger built in backbone events, but simply replacing the attributes hash will not.
-Added new line as well