MCPcopy Create free account
hub / github.com/ampproject/amphtml / reset

Method reset

extensions/amp-nested-menu/0.1/amp-nested-menu.js:250–254  ·  view source on GitHub ↗

* Close all submenus and return to the root menu.

()

Source from the content-addressed store, hash-verified

248 * Close all submenus and return to the root menu.
249 */
250 reset() {
251 while (this.element.hasAttribute('child-open')) {
252 this.close_(this.currentSubmenu_);
253 }
254 }
255
256 /**
257 * Handler for keydown event when the component or its children has focus.

Callers 1

Calls 1

close_Method · 0.95

Tested by

no test coverage detected