[buddypress-trac] [BuddyPress] #4782: jQuery 1.9 has deprecated the methods "$.live()" and "$.browser()"

buddypress-trac noreply at wordpress.org
Tue Jan 22 22:40:19 UTC 2013


#4782: jQuery 1.9 has deprecated the methods "$.live()" and "$.browser()"
-----------------------+-----------------------------
 Reporter:  Lwangaman  |      Owner:
     Type:  task       |     Status:  new
 Priority:  normal     |  Milestone:  Awaiting Review
Component:  Core       |    Version:  1.7
 Severity:  blocker    |   Keywords:
-----------------------+-----------------------------
 buddypress's "global.js" script makes use of jquery's deprecated $.live()
 method. The $.live() method is no longer valid as of jQuery 1.9, it has
 now been substituted by the $.on() method, which can be attached to the
 "document" element itself thus having the same effect as the $.live()"
 method.
 Therefore must substitute for example:

 {{{
 $('.activity-read-more a').live('click',function(event){...});
 }}}

 with:

 {{{
 $(document).on('click','.activity-read-more a',function(event){...});
 }}}

 Idem for all similar instances of $.live().

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4782>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list