backbone.picky icon indicating copy to clipboard operation
backbone.picky copied to clipboard

Events capturing when models are re-selected

Open hashchange opened this issue 11 years ago • 0 comments

Here are some of new events, triggered when models are re-selected:

  • reselected (model),
  • reselect:one (single-select collection),
  • reselect:any (multi-select collection).

The PR is based on #23 (support for model sharing across collections).

There also is a change in the spec: selectAll and deselectAll no longer fire events when they are a no-op. This had been inconsistent with the behaviour of select, which does not trigger an event unless the selection is actually changed.

Tests and documentation are included.

hashchange avatar Jan 20 '14 21:01 hashchange