mcrowe / soulmate.js

A jQuery front-end for the soulmate auto-suggestion gem
MIT License
121 stars 18 forks source link

Added the index and dom id as parameters to the suggestion select callback #6

Closed adamalbrecht closed 12 years ago

adamalbrecht commented 12 years ago

I needed some extra information when selecting an item from the suggestions.

All specs are passing. Only 1 was affected.

mcrowe commented 12 years ago

Nice. I can definitely see that that could be useful. Plus, the user can ignore that parameter if they don't care about it. I'm going to add the same parameters to the render callback for consistency. Again, thanks for updating the specs, and a good addition!