MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / unsubscribe

Method unsubscribe

src/scripts/communicator/smartValue.ts:34–41  ·  view source on GitHub ↗
(func: (newValue: T) => void)

Source from the content-addressed store, hash-verified

32 }
33
34 public unsubscribe(func: (newValue: T) => void) {
35 for (let i = 0; i < this.subscriptions.length; i++) {
36 if (func === this.subscriptions[i].func) {
37 this.subscriptions.splice(i, 1);
38 return;
39 }
40 }
41 }
42
43 public set(t: T): SmartValue<T> {
44 if (this.t !== t) {

Callers 3

testsMethod · 0.95
tearDownMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected