[buddypress-trac] [BuddyPress] #3821: Unbind selectors from tokens in jQuery

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Dec 15 18:35:23 UTC 2011

#3821: Unbind selectors from tokens in jQuery
 Reporter:  hnla                  |       Owner:
     Type:  enhancement           |      Status:  new
 Priority:  normal                |   Milestone:  1.6
Component:  Theme                 |     Version:
 Severity:  normal                |  Resolution:
 Keywords:  needs-testing commit  |

Comment (by hnla):

 How does this sound for dealing with lines 335 /1258:

 `jq('div.activity').click( function(event) {`

 my change:
 `jq('.activity').click( function(event) {`

 revised to?

 `jq('body .activity').click( function(event) {`

 If the issue is that body could contain the class 'activity' and therefore
 be a problem in that event function then remove the problem by declaring a
 descendant selector set so `.activity` now is required to be a child or
 grandchild element of parent/antecedent element `body` hopefully
 preventing the script taking action on body.activity?

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3821#comment:4>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list