Detect attachEvent() support correctly, fixes #771 (#772)

This commit is contained in:
Hallvord R. M. Steen
2017-08-16 04:40:03 +02:00
committed by Kevin Barabash
parent d01c73c312
commit a7351ffc81

View File

@@ -5,7 +5,7 @@ function init() {
if ("oninput" in input) {
input.addEventListener("input", reprocess, false);
} else {
} else if (input.attachEvent) {
input.attachEvent("onkeyup", reprocess);
}