GoogleChrome / dialog-polyfill

Polyfill for the HTML dialog element
BSD 3-Clause "New" or "Revised" License
2.45k stars 245 forks source link

Use `const` and `let` instead of `var` #152

Closed jhpratt closed 7 years ago

jhpratt commented 7 years ago

Per Google's style guide. Not really necessary, but could improve readability a little.

samthor commented 7 years ago

Currently the code is all ES5 (no arrow functions, too) so it can be used uncompiled in older browsers. Admittedly other polyfill projects don't follow the same approach and require compilation, but for now I don't see a reason to change.