[wp-trac] [WordPress Trac] #21170: JavaScript actions and filters

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 5 22:48:53 UTC 2012


#21170: JavaScript actions and filters
----------------------------+--------------------------
 Reporter:  koopersmith     |       Owner:  koopersmith
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.5
Component:  General         |     Version:  3.4
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+--------------------------

Comment (by azaozz):

 Replying to [comment:7 vhauri]:
 > ... as it allows us to develop this with only jQuery as a dependency...

 The above script doesn't have any dependencies. That may be preferable for
 some cases (front-end use?). The corresponding jQuery methods (each(),
 extend(), etc.) are tuned for wider range of uses like traversing and
 extending complex objects or the DOM which is not needed at the moment. So
 using a `for... in` loop instead of jQuery.each() and `obj[key] = val;`
 instead of jQuery.extend() is faster and keeps the script independent.

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


More information about the wp-trac mailing list