[wp-trac] [WordPress Trac] #15650: Inefficient selectors in common.dev.js

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 11 19:38:25 UTC 2010


#15650: Inefficient selectors in common.dev.js
-------------------------+--------------------------------------------------
 Reporter:  GamajoTech   |       Owner:                
     Type:  enhancement  |      Status:  new           
 Priority:  normal       |   Milestone:  Future Release
Component:  Performance  |     Version:                
 Severity:  minor        |    Keywords:  needs-refresh 
-------------------------+--------------------------------------------------

Comment(by GamajoTech):

 Replying to [comment:1 scribu]:
 > We should make a JavaScript guideline page in the codex with the rule
 that jQuery collection variables start with a '$'. This is common
 practice.
 >
 > In your patch, this would mean $body instead of body etc.

 I completely agree, but I couldn't find any agreed guidelines about which
 preference WP code should use.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15650#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list