addPreFlightCheck(actions, check) {
    if (!actions)
      actions = Object.keys(this.actions);

    for (let action of actions)
      this.actions[action].preFlightChecks.push(check);
  }
// If not defined, adds to all actions
If not defined, adds to all actions
If not defined adds to all actions
addPreFlightCheck(actions, check) {
    if (!actions)
      actions = Object.keys(this.actions);
    for (let action of actions)
      this.actions[action].preFlightChecks.push(check);
  }
addPreFlightCheck ( actions , check ) { if ( ! actions ) actions = Object . keys ( this . actions ) ; for ( let action of actions ) this . actions [ action ] . preFlightChecks . push ( check ) ; }
If not defined, adds to all actions
If not defined adds to all actions