MCPcopy Index your code
hub / github.com/SpringRoll/SpringRoll / subscribe

Method subscribe

src/state/Property.js:48–50  ·  view source on GitHub ↗

* Adds a subscriber to this property. * @param {function} callback The callback to call whenever the property changes.

(callback)

Source from the content-addressed store, hash-verified

46 * @param {function} callback The callback to call whenever the property changes.
47 */
48 subscribe(callback) {
49 this.listeners.push(callback);
50 }
51
52 /**
53 * Unsubscribes a listener from this property.

Callers 3

Property.spec.jsFile · 0.45
constructorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected