[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:
Victor Woeltjen 2015-01-15 19:07:49 -08:00
parent b2c9b0a2fb
commit 2960d4cdc2

View File

@ -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;