[wp-trac] [WordPress Trac] #31334: Customizer JS API should handle container removal from document

WordPress Trac noreply at wordpress.org
Tue Mar 21 18:22:12 UTC 2017


#31334: Customizer JS API should handle container removal from document
-------------------------------------+-------------------------------------
 Reporter:  Aniruddh                 |       Owner:  westonruter
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  Future Release
Component:  Customize                |     Version:  4.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:  javascript,
  needs-unit-tests                   |  administration
-------------------------------------+-------------------------------------
Changes (by westonruter):

 * keywords:  has-patch needs-refresh has-unit-tests => has-patch needs-
     refresh needs-unit-tests


Comment:

 This needs to be revisited. If someone wants to refresh the patch and look
 further into any complications.

 One thing to note: if a control gets removed from `wp.customize.control`
 then it should probably be forbidden from being re-added, the deferreds
 will have already resolved and any attached event listeners would have
 been destroyed. That is, unless we use `jQuery#detatch` instead of
 `jQuery#remove`.

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


More information about the wp-trac mailing list