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

Note about the method name "select"

Open rek opened this issue 11 years ago • 3 comments

From the doc:

The Picky collections override the method select on collections. At this point, I can't think of a better name for specifying a model has been selected. Once I find a better name, the API will change.

Instead of select, has pick been considered?

It seems to me like pick is only used on Backbone.Model currently.

rek avatar May 01 '14 21:05 rek

@rek : I was about to suggest that too, underscore has dibs on pick, so there is still ambiguity.

choose / unchoose / chosen / unchosen

tony avatar May 03 '14 19:05 tony

@derickbailey : choose etc. isn't my favorite, but a quick search through http://backbonejs.org/docs/backbone.html and http://underscorejs.org/docs/underscore.html show it's up for grabs.

tony avatar May 03 '14 19:05 tony

@rek @tony Another avenue which doesn't break existing code is to keep the name select and overload it. That's what I did in my own fork of Backbone.Picky - check out the docs and the code if you like.

hashchange avatar Jun 11 '14 13:06 hashchange