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

Method remove

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

* Removes the observer from this instance. * @param {function(TYPE=):void} handler Observer's instance.

(handler)

Source from the content-addressed store, hash-verified

34 * @param {function(TYPE=):void} handler Observer's instance.
35 */
36 remove(handler) {
37 if (!this.handlers_) {
38 return;
39 }
40 removeItem(this.handlers_, handler);
41 }
42
43 /**
44 * Removes all observers.

Callers 2

addMethod · 0.95

Calls 1

removeItemFunction · 0.90

Tested by

no test coverage detected