[wp-trac] [WordPress Trac] #20558: allow wp_localize_script data to be added to existing objects

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 30 05:50:36 UTC 2012


#20558: allow wp_localize_script data to be added to existing objects
-------------------------------------------------+-------------------------
 Reporter:  ryanve                               |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Performance                          |  Review
 Severity:  minor                                |     Version:  3.3
 Keywords:  dev-feedback reporter-feedback 2nd-  |  Resolution:
  opinion                                        |
-------------------------------------------------+-------------------------

Comment (by ryanve):

 Replying to [comment:2 scribu]:
 @scribu The less pollution of JavaScript's global namespace, the better,
 both for performance and for avoiding conflicts. The script handles
 already provide a unique identifier for each script. Having a single
 object could also make it easier to integrate modular code along the lines
 of http://requirejs.org

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


More information about the wp-trac mailing list