ded / bonzo

library agnostic, extensible DOM utility
Other
1.32k stars 137 forks source link

Added select() to the API #64

Closed connor closed 12 years ago

connor commented 12 years ago

Added in the source and the API documentation.

<3

ded commented 12 years ago

hmmm.... maybe this belongs in bean? i don't know

connor commented 12 years ago

i don't think so, since this isn't the select event. bean already has the select event in it - i wanted to be able to select all the text in an input this weekend in a project, and with Qwery/Bonzo, since it's not part of the API, I had to use raw js. This adds the ability to just call $('input').select(), and then it'll select all the text in there.

@fat whaddya think?

fat commented 12 years ago

nope, not an event thing, so i don't think it should go in bean

ded commented 12 years ago

um.... it is an event thing, actually

ded commented 12 years ago

oh........ uuuuuuuuuugh. okay, selecting text.... hhhhhhhmmmmmmmmmmmmmmmmm

rvagg commented 12 years ago

http://api.jquery.com/select/ (stupid)

-1 from me cause of this conflict and the likelyhood of confusion

rvagg commented 12 years ago

I'm going to close this because I've just remembered that we mirror that (stupid) jQuery select() method in the Bean bridge, listen to select events.