crowdint/rails3-jquery-autocomplete — pull request #207 by edsimpson (2013-02-03 23:10:47+00:00)
Title: When possible, use jQuery .on() rather than .live().

jQuery v1.9.0 no longer has .live() in the API. Instead use .on() if
it is available.

Testing the fix:
- installed jquery-rails v1.0.15 which has jQuery v1.6.2

pre-v1.7 jQuery uses .live() and has NO .on()

works

- installed jquery-rails v1.0.19 which has jQuery v1.7.1

has both .live() and .on()

works

- installed jquery-rails v2.2.0 which has jQuery v1.9.0

has .on() and NO .live()

works