mxriverlynn / backbone.picky

selectable entities as mixins for Backbone.Model and Backbone.Collection
129 stars 29 forks source link

Unpun SingleSelect and Selectable events #9

Closed dznz closed 11 years ago

dznz commented 11 years ago

Both SingleSelect and Selectable fire selected and deselected events, making event capture on a collection more difficult, as you get twice the events you want, with different parameters.

Update Selectable's selected and deselected events to provide the model as its first parameter (like how the collection selected event behaved previously).

Change SingleSelect to fire select:one and deselect:one events instead of the selected and deselected events. This is roughly similar to the namespacing of the MultiSelect and so maintains a foolish consistency.

Also: