Merge pull request #2776 from LexaWin/patch-2

Update script.js in Skipping elements example
This commit is contained in:
Ilya Kantor 2021-12-12 22:44:25 +03:00 committed by GitHub
commit fe63de8d16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ parent.onmouseover = parent.onmouseout = parent.onmousemove = handler;
function handler(event) {
let type = event.type;
while (type < 11) type += ' ';
while (type.length < 11) type += ' ';
log(type + " target=" + event.target.id)
return false;