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

WordPress Trac noreply at wordpress.org
Mon Jul 24 15:40:53 UTC 2017


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

Comment (by adamsilverstein):

 > Functions also have a `name` [https://developer.mozilla.org/en-
 US/docs/Web/JavaScript/Reference/Global_Objects/Function/name property]
 which we can check.

 right this would be a good way to check.

 >
 > > However for ease of use/clarity it would probably be better to always
 require a jQuery-style namespace.

 I would also be happy with supporting namespacing and always using
 namespacing in core,  in our examples and documentation, , JS standards &
 linting without actually enforcing that restriction in code.

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


More information about the wp-trac mailing list