WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/20/17 16:14:23 (6 months ago)
Author:
adamsilverstein
Message:

Menus: trigger an event when menu items are added or removed.

Fire a menu-item-added event after a menu item is added to the DOM. Fire a menu-removing-item event before a menu item is removed from the DOM. Enables hooking into and responding to menu changes.

Props welcher, adamsilverstein.
Fixes #31218.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/qunit/index.html

    r39075 r39928  
    6767        <script src="wp-admin/js/customize-widgets.js"></script> 
    6868        <script src="wp-admin/js/word-count.js"></script> 
     69        <script src="wp-admin/js/nav-menu.js"></script> 
    6970 
    7071        <!-- Customizer templates for sections --> 
Note: See TracChangeset for help on using the changeset viewer.