beviz / jquery-caret-position-getter

you can get the cursor caret offset position(i.e.x,y) by this plugin, even included index getter.
http://bevis.me/jquery-caret-position-getter.html
41 stars 15 forks source link

Don't use $.browser - it was removed in jQuery 1.9 #5

Open christianp opened 11 years ago

christianp commented 11 years ago

jQuery.browser was removed in jQuery 1.9 (http://api.jquery.com/jQuery.browser/), recommending that we use feature detection through $.support instead of browser detection. This library uses it quite a lot, and for now I'm using the jQuery.migrate plugin. It isn't clear from the code how to replace $.browser with calls to $.support, so I can't fix this myself.

dandv commented 10 years ago

:+1: The Meteor autocomplete library depends on caret-position-getter and had to resort to jQuery-migrate in order to use $.browser. That resulted in all sorts of breakage.