Remove some unused Knockout code

This commit is contained in:
the-djmaze 2024-01-08 05:24:15 +01:00
parent 6a715da1ac
commit 81ccee1152
5 changed files with 89 additions and 106 deletions

View file

@ -48,8 +48,8 @@ ko.bindingHandlers['checked'] = {
// currently checked, replace the old elem value with the new elem value
// in the model array.
if (isChecked) {
writableValue.push(elemValue);
writableValue.remove(saveOldValue);
writableValue.push(elemValue);
writableValue.remove(saveOldValue);
}
} else {
// When we're responding to the user having checked/unchecked a checkbox,