Skip to content

Methods

subscribe

Source code

changesObserver.subscribe(callback) ⇒ ChangesObserver

Subscribes to the observer.

ParamTypeDescription
callbackfunctionA function that will be called when the new changes will appear.

unsubscribe

Source code

changesObserver.unsubscribe() ⇒ ChangesObserver

Unsubscribes all subscriptions. After the method call, the observer would not produce any new events.