export const featureNames = {}
const featureOptions = {}
defineFeatureCircuitExecStepHighlightShowStartStopMarkers()
/**
* Used by CircuitRef / Location
* Will display Stop/Start markers when the user highlight a circuit exec step.
*/
function defineFeatureCircuitExecStepHighlightShowStartStopMarkers() {
let name = 'CIRCUIT_EXEC_STEP_HIGHLIGHT_SHOW_START_STOP_MARKERS'
featureNames[name] = name
featureOptions[name] = {
validate() {
return false
},
}
}
export function hasFeature(featureName) {
let options = featureOptions[featureName] || {}
if (options.validate) {
return options.validate()
} else {
return true
}
}
Source