(func: (newValue: T) => void)
| 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) { |
no outgoing calls
no test coverage detected