forked from jashkenas/backbone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adds `{ reset: true }` flag to `#set` that deletes any attributes that are not specified - Adds ‘reset’ event mirroring `Collection`’s. Fixes jashkenas#3253, jashkenas#3395. I could really use help naming the `validateCombined` option. I need to validate only the passed in `attrs` (both `#clear` and `#reset` specify _exactly_ what the attributes will be), not the merged `attrs` `attributes`.
- Loading branch information
1 parent
ea82dad
commit 7f6e8d1
Showing
2 changed files
with
73 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters