KnockoutJS drop IE leftovers

This commit is contained in:
the-djmaze 2024-03-03 18:17:01 +01:00
parent 39ad99224e
commit 4276896002
2 changed files with 0 additions and 11 deletions

View file

@ -18,14 +18,6 @@ ko.bindingHandlers['attr'] = {
attrValue = attrValue.toString();
namespace ? element.setAttributeNS(namespace, attrName, attrValue) : element.setAttribute(attrName, attrValue);
}
// Treat "name" specially - although you can think of it as an attribute, it also needs
// special handling on older versions of IE (https://github.com/SteveSanderson/knockout/pull/333)
// Deliberately being case-sensitive here because XHTML would regard "Name" as a different thing
// entirely, and there's no strong reason to allow for such casing in HTML.
if (attrName === "name") {
element.name = toRemove ? "" : attrValue;
}
});
}
};

View file

@ -45,9 +45,6 @@ ko.bindingHandlers['textInput'] = {
// Bind to the change event so that we can catch programmatic updates of the value that fire this event.
onEvent('change', updateModel);
// To deal with browsers that don't notify any kind of event for some changes (IE, Safari, etc.)
onEvent('blur', updateModel);
ko.computed(updateView, { disposeWhenNodeIsRemoved: element });
}
};