Remove more IE9 stuff from Knockoutjs

This commit is contained in:
djmaze 2020-09-19 13:36:05 +02:00
parent 1ec45a9f8e
commit 4da5543c27
4 changed files with 133 additions and 155 deletions

View file

@ -168,11 +168,7 @@
// Since most browsers remove the focus from an element when it's moved to another location,
// save the focused element and try to restore it later.
try {
activeElement = domNode.ownerDocument.activeElement;
} catch(e) {
// IE9 throws if you access activeElement during page load (see issue #703)
}
activeElement = domNode.ownerDocument.activeElement;
// Try to reduce overall moved nodes by first moving the ones that were marked as moved by the edit script
if (itemsToMoveFirstIndexes.length) {