We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b9c39b + 1eb6639 commit fdb21b6Copy full SHA for fdb21b6
src/librustdoc/html/static/main.js
@@ -215,14 +215,14 @@
215
} else if (ev.target.tagName === 'SPAN' && hasClass(ev.target.parentNode, 'line-numbers')) {
216
var prev_id = 0;
217
218
- function set_fragment(name) {
+ var set_fragment = function (name) {
219
if (browserSupportsHistoryApi()) {
220
history.replaceState(null, null, '#' + name);
221
window.hashchange();
222
} else {
223
location.replace('#' + name);
224
}
225
- }
+ };
226
227
var cur_id = parseInt(ev.target.id, 10);
228
@@ -685,7 +685,7 @@
685
686
687
function escape(content) {
688
- let h1 = document.createElement('h1');
+ var h1 = document.createElement('h1');
689
h1.textContent = content;
690
return h1.innerHTML;
691
0 commit comments