KnockoutJS drop unused uniqueName

This commit is contained in:
the-djmaze 2024-03-03 18:12:18 +01:00
parent 62bda28a28
commit 39ad99224e

View file

@ -78,10 +78,6 @@ ko.bindingHandlers['checked'] = {
useElementValue = isRadio || valueIsArray,
oldElemValue = valueIsArray ? checkedValue() : undefined;
// IE 6 won't allow radio buttons to be selected unless they have a name
if (isRadio && !element.name)
ko.bindingHandlers['uniqueName']['init'](element, function() { return true });
// Set up two computeds to update the binding:
// The first responds to changes in the checkedValue value and to element clicks