mirror of
https://github.com/nasa/openmct.git
synced 2025-04-16 15:29:20 +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:
parent
b2c9b0a2fb
commit
2960d4cdc2
@ -58,7 +58,10 @@ define(
|
||||
// Invoke the observer callback to notify that new streaming
|
||||
// data has become available.
|
||||
function fireCallback() {
|
||||
callback();
|
||||
// Fire callback, if one was provided
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
// Clear the pending flag so that future updates will
|
||||
// schedule this callback.
|
||||
updatePending = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user