Currently when using with jQuery >= 1.9, Firebug will capture a JS error message as below:
TypeError: $.browser is undefined
As refer to http://api.jquery.com/jQuery.browser/:
Description: Contains flags for the useragent, read from navigator.userAgent. This property was removed in jQuery 1.9 and is available only through the jQuery.migrate plugin. Please try to use feature detection instead.
A dirty workaround is to remove the usage of $.browser and the support for IE 6.
As a better alternative, we may consider using http://api.jquery.com/jquery.support/ instead?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fix_depricated_method_2884827_1.patch | 530 bytes | keshavv |
Comments
Comment #2
keshavv commentedI have same same problem. Find solution after 2 days .
Here is the patch.
Comment #3
keshavv commentedComment #7
bucefal91 commentedCrediting folks from #2594311: "Uncaught TypeError: Cannot read property 'msie' of undefined" for jQuery >= 1.9
Comment #9
bucefal91 commentedCommitted #2.