[wp-trac] [WordPress Trac] #31218: nav-menu.js menu item added event
WordPress Trac
noreply at wordpress.org
Fri Jan 20 16:14:24 UTC 2017
#31218: nav-menu.js menu item added event
------------------------------------+------------------------------
Reporter: welcher | Owner: adamsilverstein
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.8
Component: Menus | Version: 4.2
Severity: trivial | Resolution: fixed
Keywords: has-patch next-release | Focuses: javascript
------------------------------------+------------------------------
Changes (by adamsilverstein):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"39928"]:
{{{
#!CommitTicketReference repository="" revision="39928"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31218#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list