harvesthq/chosen — pull request #1075 by theteknocat (2013-03-07 20:45:32+00:00)
Title: Quicksilver score matching, plus some small tweaks

Ok, I hope I've done it the right way this time. If not, I'd appreciate some guidance on how you'd like this done before you will accept my contribution.

I have made changes to the coffee script source for the jQuery version to use score.js for the text matching. I also fixed some bugs in the way I'd first implemented and removed some code I had put in only for reference during development.

I was not able to put score.js into the source in coffee script format, but I did try. When converted to coffeescript then compiled back to JS, it caused the browser to hang up. I tried it as a standalone script compiled from coffeescript, as well as a method of the chosen object. I didn't have the time to figure out how to make this work any other way, so I just included score.js in the lib folder. I don't know if the cake build can bring in a normal JS file like that or if it must be in coffeescript format.

I'll spend more time on it when I can, but for now I'm hoping this will work for you. If it's not acceptable, I'd appreciate your advice on it.