// Detect new variable declaration or changed value
hasVarChange =
// Ponyfill has been called before with updateDOM
counters.job > 0 &&
// New/Change
Boolean(
// New declaration
(Object.keys(variableStore.job).length > Object.keys(currentVars).length) ||
// Changed declaration value
Boolean(
// Previous declarations exist
Object.keys(currentVars).length &&
// At least one job value does has changed
Object.keys(variableStore.job).some(key => variableStore.job[key] !== currentVars[key])
)
);
outputcss
The console selects a style element,
The style can be output correctly
Console continue typing,
It doesn't turn red
Deleting a variable is not considered a change