[buddypress-trac] [BuddyPress] #4074: jQuery and replacement of .on() for .live()

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Mar 13 13:25:22 UTC 2012


#4074: jQuery and replacement of .on() for .live()
--------------------------+-----------------------------
 Reporter:  netweblogic   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  minor         |   Keywords:
--------------------------+-----------------------------
 I know you're aware of this nuance, and that there already is
 compatibility with the depreciated function, but I think it's worth at
 least raising this so it gets done and avoid future issues.

 You can get away with literally replacing .live(... with .on(... which
 works for me.

 Alternatively, we should use the delegate() function, as that's not
 depreciated. Upside is it's more backwards compatible but not as simple to
 change.

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


More information about the buddypress-trac mailing list