new SubscriptionManager()
Provides a way to manage subscriptions and notify observers. Used internally by Observable and ObservableList, not meant to be used directly.
- Source:
Methods
notify(newValue, oldValue)
Parameters:
Name | Type | Description |
---|---|---|
newValue |
* | |
oldValue |
* |
- Source:
subscribe(observer) → {Subscription}
Adds the provided observer to the list of subscriptions, and returns a Subscription object which can be used to unsubscribe from notifications.
Parameters:
Name | Type | Description |
---|---|---|
observer |
Observer |
- Source:
Returns:
- Type
- Subscription