mirror of
https://github.com/nasa/openmct.git
synced 2025-06-23 01:18:57 +00:00
[Fixed Position] All subscription callback to be undefined
Allow callback provided when subscribing to telemetry using telemetrySubscriber to be omitted; this permits usage of the resulting subscription more directly from controllers, such as for fixed position view, WTD-615.
This commit is contained in:
@ -58,7 +58,10 @@ define(
|
|||||||
// Invoke the observer callback to notify that new streaming
|
// Invoke the observer callback to notify that new streaming
|
||||||
// data has become available.
|
// data has become available.
|
||||||
function fireCallback() {
|
function fireCallback() {
|
||||||
callback();
|
// Fire callback, if one was provided
|
||||||
|
if (callback) {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
// Clear the pending flag so that future updates will
|
// Clear the pending flag so that future updates will
|
||||||
// schedule this callback.
|
// schedule this callback.
|
||||||
updatePending = false;
|
updatePending = false;
|
||||||
|
Reference in New Issue
Block a user