MCPcopy Create free account
hub / github.com/SpringRoll/SpringRoll / unsubscribe

Method unsubscribe

src/state/Property.js:56–58  ·  view source on GitHub ↗

* Unsubscribes a listener from this property. * @param {function} callback The callback to unsubscribe.

(callback)

Source from the content-addressed store, hash-verified

54 * @param {function} callback The callback to unsubscribe.
55 */
56 unsubscribe(callback) {
57 this.listeners = this.listeners.filter(listener => listener !== callback);
58 }
59
60 /**
61 * Whether or not this property has any subscribed listeners

Callers 1

Property.spec.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected