function dispatchCanExecuteEvent(command, target) {
    var e = new CanExecuteEvent(command);
    target.dispatchEvent(e);
    command.disabled = !e.canExecute;
  }
/**
   * Dispatches a canExecute event on the target.
   * @param {!cr.ui.Command} command The command that we are testing for.
   * @param {EventTarget} target The target element to dispatch the event on.
   */
Dispatches a canExecute event on the target.
@param {!cr.ui.Command} command The command that we are testing for.
@param {EventTarget} target The target element to dispatch the event on.
Dispatches a canExecute event on the target . @param { !cr . ui . Command } command The command that we are testing for . @param { EventTarget } target The target element to dispatch the event on .
function dispatchCanExecuteEvent(command, target) {
    var e = new CanExecuteEvent(command);
    target.dispatchEvent(e);
    command.disabled = !e.canExecute;
  }
function dispatchCanExecuteEvent ( command , target ) { var e = new CanExecuteEvent ( command ) ; target . dispatchEvent ( e ) ; command . disabled = ! e . canExecute ; }
Dispatches a canExecute event on the target.
Dispatches a canExecute event on the target .