rustdoc: stop using deprecated window.event when there's an ev param

This commit is contained in:
Michael Howell 2023-01-17 17:54:58 -07:00
parent 6d7e2135f1
commit 708b529f31

View File

@ -940,7 +940,7 @@ function loadCss(cssUrl) {
return;
}
if (!this.NOTABLE_FORCE_VISIBLE &&
!elemIsInParent(event.relatedTarget, window.CURRENT_NOTABLE_ELEMENT)) {
!elemIsInParent(ev.relatedTarget, window.CURRENT_NOTABLE_ELEMENT)) {
hideNotable(true);
}
};