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

Method removeAll

src/core/data-structures/observable.js:46–51  ·  view source on GitHub ↗

* Removes all observers.

()

Source from the content-addressed store, hash-verified

44 * Removes all observers.
45 */
46 removeAll() {
47 if (!this.handlers_) {
48 return;
49 }
50 this.handlers_.length = 0;
51 }
52
53 /**
54 * Fires an event. All observers are called.

Callers 7

test-observable.jsFile · 0.80
removeGestureMethod · 0.80
disposeMethod · 0.80
disposeMethod · 0.80
disposeMethod · 0.80
disposeMethod · 0.80
disposeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected