5

Possible Duplicate:
Is jQuery $.browser Deprecated?

Did the latest jQuery library change $.browser?
When i run this (fiddle) in firefox, im getting an error in console:TypeError: obj is undefined

Community
  • 1
  • 1
t q
  • 4,593
  • 8
  • 56
  • 91

3 Answers3

13

It was deprecated for a long while. And has been removed since 1.9.

To still be able to use the $.browser you should add the following JS, or visit the project on github:

<script src="http://code.jquery.com/jquery-migrate-1.0.0.js"></script>

See the version 1.9 changelog:
http://blog.jquery.com/2013/01/15/jquery-1-9-final-jquery-2-0-beta-migrate-final-released/

More info on upgrading
http://jquery.com/upgrade-guide/1.9/

adamdehaven
  • 5,890
  • 10
  • 61
  • 84
Niels
  • 48,601
  • 4
  • 62
  • 81
2

you need to use the migration plugin. jQuery.browser was deprecated in 1.3 and removed in 1.9. Please read the upgrade guide.

Arun P Johny
  • 384,651
  • 66
  • 527
  • 531
1

Per the jQuery 1.8 release notes and ticket 9835 it's been officially deprecated.

j08691
  • 204,283
  • 31
  • 260
  • 272