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

Method toggleTopClass_

extensions/amp-access/0.1/amp-access.js:685–689  ·  view source on GitHub ↗

* @param {string} className * @param {boolean} on * @private

(className, on)

Source from the content-addressed store, hash-verified

683 * @private
684 */
685 toggleTopClass_(className, on) {
686 this.vsync_.mutate(() => {
687 this.getRootElement_().classList.toggle(className, on);
688 });
689 }
690
691 /**
692 * @param {!../../../src/service/action-impl.ActionInvocation} invocation

Callers 2

runAuthorization_Method · 0.95
runOneAuthorization_Method · 0.95

Calls 3

getRootElement_Method · 0.95
mutateMethod · 0.45
toggleMethod · 0.45

Tested by

no test coverage detected