Support » Requests and Feedback » jQuery 1.9 has deprecated methods ".live()" and ".browser()"

  • I already posted this in the “How To and Troubleshooting” section, but it’s probably more appropriate here in the feedback area as a bug request… So sorry for the duplicate post…

    I use the latest jQuery 1.9 on my WordPress / Buddypress enabled website, but the latest jQuery has deprecated some methods, such as “.live()” and “.browser()” in favour of “.on()” and “.support()” respectively, and this breaks some of the javascripts of both Buddypress and WordPress (namely, “buddypress/bp-themes/bp-default/_inc/global.js” and “wp-includes/js/admin-bar.js” (or “wp-includes/js/admin-bar.min.js”).
    It would probably be a good idea to update these in the next release.
    Removing the “$.browser” method isn’t quite so simple, because using “$.support()” is a whole other concept. I noticed that “$.browser()” is used to construct the admin bar, and specifically targets mozilla. In fact I am getting continuously the following message in my chrome inspector tools when I hover over the admin-bar items:
    Uncaught TypeError: Cannot read property ‘mozilla’ of undefined —- admin-bar.min.js:1
    It will be necessary to target the specific functionality of mozilla that is different from other browsers in order to use “$.support()”.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘jQuery 1.9 has deprecated methods ".live()" and ".browser()"’ is closed to new replies.