File tree 1 file changed +6
-9
lines changed
src/librustdoc/html/static/js
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,6 @@ function elemIsInParent(elem, parent) {
35
35
return false ;
36
36
}
37
37
38
- function blurHandler ( event , parentElem , hideCallback ) {
39
- if ( ! elemIsInParent ( document . activeElement , parentElem ) &&
40
- ! elemIsInParent ( event . relatedTarget , parentElem )
41
- ) {
42
- hideCallback ( ) ;
43
- }
44
- }
45
-
46
38
window . rootPath = getVar ( "root-path" ) ;
47
39
window . currentCrate = getVar ( "current-crate" ) ;
48
40
@@ -1045,7 +1037,12 @@ function preLoadCss(cssUrl) {
1045
1037
}
1046
1038
1047
1039
function helpBlurHandler ( event ) {
1048
- blurHandler ( event , getHelpButton ( ) , window . hidePopoverMenus ) ;
1040
+ const parentElem = getHelpButton ( ) ;
1041
+ if ( ! elemIsInParent ( document . activeElement , parentElem ) &&
1042
+ ! elemIsInParent ( event . relatedTarget , parentElem )
1043
+ ) {
1044
+ window . hidePopoverMenus ( ) ;
1045
+ }
1049
1046
}
1050
1047
1051
1048
function buildHelpMenu ( ) {
You can’t perform that action at this time.
0 commit comments