Remove tag debug logs if state unchanged
This commit is contained in:
parent
0804843805
commit
b948e31a89
|
@ -765,8 +765,10 @@ function toggleTagThreeState(element, { stateOverride = undefined, simulateClick
|
||||||
element.toggleClass(FILTER_STATES[state].class, state === states[targetStateIndex]);
|
element.toggleClass(FILTER_STATES[state].class, state === states[targetStateIndex]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (states[currentStateIndex] !== states[targetStateIndex]) {
|
||||||
console.debug('toggle three-way filter from', states[currentStateIndex], 'to', states[targetStateIndex], 'on', element);
|
console.debug('toggle three-way filter from', states[currentStateIndex], 'to', states[targetStateIndex], 'on', element);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return states[targetStateIndex];
|
return states[targetStateIndex];
|
||||||
|
|
Loading…
Reference in New Issue