]> git.lizzy.rs Git - rust.git/commitdiff
Make documentation works again by removing two unnecessary ES6 pieces.
authorpravic <ehysta@gmail.com>
Thu, 18 May 2017 07:35:18 +0000 (10:35 +0300)
committerpravic <ehysta@gmail.com>
Thu, 18 May 2017 07:35:18 +0000 (10:35 +0300)
src/librustdoc/html/static/main.js

index c115a6ccba609b3b0788dc2e9a6e288090985a0f..f09ce1cc64849210cf2006f1a0f1052c2201e9d1 100644 (file)
         } else if (ev.target.tagName === 'SPAN' && hasClass(ev.target.parentNode, 'line-numbers')) {
             var prev_id = 0;
 
-            function set_fragment(name) {
+            var set_fragment = function (name) {
                 if (browserSupportsHistoryApi()) {
                     history.replaceState(null, null, '#' + name);
                     window.hashchange();
                 } else {
                     location.replace('#' + name);
                 }
-            }
+            };
 
             var cur_id = parseInt(ev.target.id, 10);
 
         }
 
         function escape(content) {
-            let h1 = document.createElement('h1');
+            var h1 = document.createElement('h1');
             h1.textContent = content;
             return h1.innerHTML;
         }