diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-26 22:11:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-26 22:11:26 +0200 |
| commit | 0747f586ebada402e2b2d5cb14ab40d5f33518a6 (patch) | |
| tree | 4c2b0c0f890987e5cd4d7567a4ac7ffc95bc2d50 /src/librustdoc/html/static/source-script.js | |
| parent | 6e6bd630e67e79d553e52eaca191555991eedd8f (diff) | |
| parent | 398511a1352ab5b6d5fd8f2c9e80b357f6b84441 (diff) | |
| download | rust-0747f586ebada402e2b2d5cb14ab40d5f33518a6.tar.gz rust-0747f586ebada402e2b2d5cb14ab40d5f33518a6.zip | |
Rollup merge of #72294 - GuillaumeGomez:js-cleanup, r=kinnison
JS cleanup The goal here is just to improve the source code a bit. I recommend to review one commit at a time, otherwise it might not make much sense. :) The biggest commit is the second one: to prevent to have "global" variables declared in `main.js` (and thus prevent name conflict or overwriting), I moved such code into anonymous functions. r? @kinnison cc @rust-lang/rustdoc
Diffstat (limited to 'src/librustdoc/html/static/source-script.js')
| -rw-r--r-- | src/librustdoc/html/static/source-script.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/source-script.js b/src/librustdoc/html/static/source-script.js index 567022b4139..cfbfe6675f5 100644 --- a/src/librustdoc/html/static/source-script.js +++ b/src/librustdoc/html/static/source-script.js @@ -1,5 +1,5 @@ // From rust: -/* global sourcesIndex */ +/* global search, sourcesIndex */ // Local js definitions: /* global addClass, getCurrentValue, hasClass, removeClass, updateLocalStorage */ |
