[wp-trac] [WordPress Trac] #21170: JavaScript actions and filters
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 6 02:34:06 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:9 vhauri]:
> ...but if your thought is that we use it as a basis for a vanilla JS
library (one that doesn't maintain any sort of compatibility with the
latest and greatest version of AmplifyJS) that does the actions/hooks
stuff, that sounds reasonable.
Exactly, the patch is an earlier attempt to implement this as simple as
possible. It was based off of AmplifyJS (it "borrows" some code from
there). However it is quite different from the original and doesn't
interfere with it, and there would be no need for any maintenance when
AmplifyJS is updated.
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21170#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list