MCPcopy Index your code
hub / github.com/angular/angular / removeStyle

Method removeStyle

adev/src/app/features/home/animation/animation.ts:393–406  ·  view source on GitHub ↗

Remove active style.

(selector: string, property: string)

Source from the content-addressed store, hash-verified

391
392 /** Remove active style. */
393 private removeStyle(selector: string, property: string) {
394 const elements = this.allObjects.get(selector)!;
395
396 if (elements instanceof Element) {
397 this.renderer.removeStyle(elements, property);
398 } else {
399 for (const e of elements) {
400 this.renderer.removeStyle(e, property);
401 }
402 }
403
404 const activeStyles = this.activeStyles.get(selector) || {};
405 delete activeStyles[property];
406 }
407
408 /** Animate function. */
409 private animate(then: number, elapsed: number) {

Callers 2

resetMethod · 0.95
updateFrameMethod · 0.95

Calls 2

getMethod · 0.65
removeStyleMethod · 0.65

Tested by

no test coverage detected