jordansinger / Hook

Pull to refresh for the web
MIT License
1.6k stars 280 forks source link

$.browser alternative #4

Closed IainIsCreative closed 11 years ago

IainIsCreative commented 11 years ago

Looking through the code, it uses $.browser() for webkit, however this is no longer in jQuery as of 1.9 due to it being deprecated. jQuery suggests using feature detection (like Modernizr) as an alternative, but surely the code could check for the useragent rather than needing to pull in an entire library for a rather small purpose?

EDIT: Looked through again, and didn't notice the alternative code. D'oh! :-)