[wp-trac] Re: [WordPress Trac] #5583: New widgets interface

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 7 22:54:45 GMT 2008


#5583: New widgets interface
-------------------------+--------------------------------------------------
 Reporter:  mdawaffe     |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  normal       |    Milestone:  2.5      
Component:  General      |      Version:  2.5      
 Severity:  normal       |   Resolution:           
 Keywords:  has-patch    |  
-------------------------+--------------------------------------------------
Comment (by mdawaffe):

 We definitely need to keep noConflict around for plugins.

 The jQuery people themselves recommend using jQuery rather than $ most
 places: http://docs.jquery.com/Plugins/Authoring#Custom_Alias

 Their recommendation on how to do that easily is a great one:

 {{{
 (function($) {
   // plugin code here, use $ as much as you like
 })(jQuery);
 }}}

 That method also automatically makes it harder to contaminate the global
 JS namespace.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5583#comment:17>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list