[wp-trac] [WordPress Trac] #33184: Customizer: unnecessary events bound on some section titles

WordPress Trac noreply at wordpress.org
Wed Aug 5 13:24:07 UTC 2015


#33184: Customizer: unnecessary events bound on some section titles
--------------------------+----------------------------------------
 Reporter:  afercia       |       Owner:  helen
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.3
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  accessibility, javascript
--------------------------+----------------------------------------

Comment (by afercia):

 Alternate approach:
 - the available menu items search shouldn't be inside `.accordion-
 container` in the first place,  the available menu items template should
 be refactored a bit... I see also some unused stuff there, maybe it would
 need some cleaning... working on it
 - about `wp.customize.Section.attachEvents()` and
 `wp.customize.Panel.attachEvents()` which are responsible to attach
 unnecessary events on the "titles", maybe we just need to filter out the
 titles with some more specific jQuery selectors
 Thoughts?

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


More information about the wp-trac mailing list