function onOperationComplete(status, callbackId) {
    var callback = commandCallbacks[callbackId];
    delete commandCallbacks[callbackId];
    if (callback) {
      callback(status);
    }
    update();
  }
// Fired from the backend after the command call has completed.
Fired from the backend after the command call has completed.
Fired from the backend after the command call has completed .
function onOperationComplete(status, callbackId) {
    var callback = commandCallbacks[callbackId];
    delete commandCallbacks[callbackId];
    if (callback) {
      callback(status);
    }
    update();
  }
function onOperationComplete ( status , callbackId ) { var callback = commandCallbacks [ callbackId ] ; delete commandCallbacks [ callbackId ] ; if ( callback ) { callback ( status ) ; } update ( ) ; }
Fired from the backend after the command call has completed.
Fired from the backend after the command call has completed .