#31493 closed Cleanup/optimization (fixed)
Replace var usage with const and let keywords in JavaScript.
Reported by: | Jon Dufresne | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Adam Johnson | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let
Since 8b30360322d4de6687e17ab267a856db4e3c78a6, these statements are available on all supported browsers.
Change History (9)
comment:1 by , 5 years ago
Has patch: | set |
---|
comment:2 by , 5 years ago
Cc: | added |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 5 years ago
Additionally, whilst we don't officially support IE11 since that commit, https://caniuse.com/#search=const and https://caniuse.com/#search=let show it has support with only caveats for loops, so I expect most things should continue to function there.
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/12767