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

WordPress Trac noreply at wordpress.org
Mon Sep 14 18:20:01 UTC 2015


#21170: JavaScript actions and filters
------------------------------------------------+--------------------------
 Reporter:  koopersmith                         |       Owner:
     Type:  feature request                     |  adamsilverstein
 Priority:  normal                              |      Status:  assigned
Component:  General                             |   Milestone:  Future
 Severity:  normal                              |  Release
 Keywords:  2nd-opinion has-patch dev-feedback  |     Version:  3.4
                                                |  Resolution:
                                                |     Focuses:  javascript
------------------------------------------------+--------------------------

Comment (by azaozz):

 Replying to [comment:98 adamsilverstein]:

 Yeah, it's sad we couldn't get this done at the time (in 3.5-3.6). There
 were only a few `$( document ).trigger()` "hooks" in core at the time, now
 there are many more and we will probably have to keep them for back-
 compat. I was still hoping koop will eventually have another look at it
 some day and change his mind...

 I still think there are clear advantages in having a global events bus
 where core and plugins can easily (and orderly) interact with each other.
 This is in addition to separate components using separate "events
 systems".

 Not sure if this needs to be usable in other scopes. We use JS libraries
 for all bigger components and it seems best to use the specific library's
 events internally in the component, and use the global bus for globally
 accessible "hooks".

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21170#comment:99>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list