[wp-trac] [WordPress Trac] #21170: JavaScript actions and filters
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 6 03:26:09 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:13 vhauri]:
> Callbacks does offer the .fired() method to test if a particular
callback has been fired... I do think it's a worthwhile feature that
should be added into whatever solution ends up being used.
Agree, there is similar functionality in PHP: `did_action()` and in the
above example: `wp.didAction()`. It wouldn't be hard to extend this so it
can be used for each callback, i.e. support both `wp.didAction(action)`
and `wp.didAction(action.namespace)`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21170#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list