Enable support for DOM level 3+ case sensitive event types (#892)

This commit is contained in:
Adnan M.Sagar, PhD 2020-03-13 07:29:38 -04:00 committed by GitHub
parent e264cf38c0
commit c4dce22d9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ var patchProperty = function(node, key, oldValue, newValue, listener, isSvg) {
} else if (key[0] === "o" && key[1] === "n") {
if (
!((node.actions || (node.actions = {}))[
(key = key.slice(2).toLowerCase())
(key = key.slice(2))
] = newValue)
) {
node.removeEventListener(key, listener)