Skip to content

Commit 708b529

Browse files
committed
rustdoc: stop using deprecated window.event when there's an ev param
1 parent 6d7e213 commit 708b529

File tree

1 file changed

+1
-1
lines changed
  • src/librustdoc/html/static/js

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/js/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ function loadCss(cssUrl) {
940940
return;
941941
}
942942
if (!this.NOTABLE_FORCE_VISIBLE &&
943-
!elemIsInParent(event.relatedTarget, window.CURRENT_NOTABLE_ELEMENT)) {
943+
!elemIsInParent(ev.relatedTarget, window.CURRENT_NOTABLE_ELEMENT)) {
944944
hideNotable(true);
945945
}
946946
};

0 commit comments

Comments
 (0)