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

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 6 03:15:03 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 vhauri):

 Replying to [comment:12 azaozz]:

 > The jQuery Callbacks() looks like a good candidate but is missing some
 key features like  priorities and namespaces. Considering it would be
 preferable to keep this API self-contained, perhaps we can settle for a
 simpler solution using few loops instead of trying to patch/extend
 Callbacks(). That would need less maintenance too.

 Callbacks does offer the .fired() method to test if a particular callback
 has been fired:  http://api.jquery.com/callbacks.fired/. Being able to
 tell specifically whether or not a particular callback or list of
 callbacks has fired would be useful. That doesn't solve the problem of
 actually being able to call one method before another, but I do think it's
 a worthwhile feature that should be added into whatever solution ends up
 being used.

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


More information about the wp-trac mailing list