Skip to content

Commit 6df79ae

Browse files
committed
Rename reRender function
1 parent 4301aa3 commit 6df79ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hoverxref/_static/js/hoverxref.js_t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var mathjax = {{ 'true' if hoverxref_mathjax else 'false' }};
22
var sphinxtabs = {{ 'true' if hoverxref_sphinxtabs else 'false' }};
33

4-
function reRender (instance, helper) {
4+
function reRenderTooltip (instance, helper) {
55
// Check if the content is the same as the default content until
66
// it's different. Once it's different, re renders its content
77
// to show it properly (this may involve calling external JS
@@ -18,7 +18,7 @@ function reRender (instance, helper) {
1818
};
1919
instance.reposition();
2020
} else {
21-
setTimeout(reRender, 100, instance, helper);
21+
setTimeout(reRenderTooltip, 100, instance, helper);
2222
};
2323
}
2424

@@ -95,7 +95,7 @@ $(document).ready(function() {
9595
helper.tooltip.classList.add('{{ hoverxref_tooltip_class }}');
9696
reLoadSphinxTabs();
9797
setTimeout(
98-
reRender,
98+
reRenderTooltip,
9999
50,
100100
instance,
101101
helper

0 commit comments

Comments
 (0)