Labs/Jetpack/JEP/14: Difference between revisions

Jump to navigation Jump to search
→‎on(selector): menuitem -> menu typo
(→‎on(selector): Fixed examples.)
(→‎on(selector): menuitem -> menu typo)
Line 125: Line 125:
===== <code>on(selector)</code> =====
===== <code>on(selector)</code> =====


Returns a clone of the menuitem such that further methods apply only on contexts arising from nodes that match the given CSS selector.  This is useful, for example, for the browser's content context menu, <code>jetpack.menu.context.page</code>.
Returns a clone of the menu such that further methods apply only on contexts arising from nodes that match the given CSS selector.  This is useful, for example, for the browser's content context menu, <code>jetpack.menu.context.page</code>.


<blockquote>
<blockquote>
Confirmed users
764

edits

Navigation menu