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

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 6 16:23:42 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 CaptainN):

 It's a lot of very small objects (as apposed to a lot of strings in other
 models), is that really a big deal?

 You could also use a factory method of some kind to construct those (and
 to add/remove custom actions so plugin authors wouldn't have to
 instantiate any Signal instances directly).

 I was also thinking of a way to do lazy instantiation using a
 getter/setter model (you still get the better error checking on property
 access, without instantiating all those objects up front) - but that IE
 monster keeps it from happening (there are ways in IE even if they are bit
 hacky).

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


More information about the wp-trac mailing list