Skip to content

[backport] PR #6907 to 4.x#6927

Merged
epixa merged 1 commit into4.xfrom
jasper/backport/6907/4.x
Apr 14, 2016
Merged

[backport] PR #6907 to 4.x#6927
epixa merged 1 commit into4.xfrom
jasper/backport/6907/4.x

Conversation

@elastic-jasper
Copy link
Contributor

Backport PR #6907

Commit 1:
[internal] Replace var with let in ui/public A-D

This change was applied to any .js files under directories beginning
with a through d in src/ui/public.

This was an automatic replacement from var to let for any variable
declaration that doubles as the initial assignment. Ultimately we want
most of these to be converted to const, but this commit is so large that
it warrants breaking each step of automation up into its own commit.

For example:

var foo = 'bar'; becomes let foo = 'var';

This was accomplished by replacing:
find: var ([a-zA-Z_$][0-9a-zA-Z_$]*)(\s+)=
replace: let $1$2=

@elastic-jasper elastic-jasper added backport This PR is a backport of another PR has conflicts labels Apr 14, 2016
---------

**Commit 1:**
[internal] Replace var with let in ui/public A-D

This change was applied to any .js files under directories beginning
with `a` through `d` in src/ui/public.

This was an automatic replacement from var to let for any variable
declaration that doubles as the initial assignment. Ultimately we want
most of these to be converted to const, but this commit is so large that
it warrants breaking each step of automation up into its own commit.

For example:

`var foo = 'bar';` becomes `let foo = 'var';`

This was accomplished by replacing:
find: `var ([a-zA-Z_$][0-9a-zA-Z_$]*)(\s+)=`
replace: `let $1$2=`

* Original sha: 4c535f6
* Authored by Court Ewing <court@epixa.com> on 2016-04-12T22:18:38Z
@epixa epixa force-pushed the jasper/backport/6907/4.x branch from 91fa436 to 0500028 Compare April 14, 2016 15:06
@epixa
Copy link
Contributor

epixa commented Apr 14, 2016

jenkins, test it

@epixa epixa merged commit b7cf34c into 4.x Apr 14, 2016
@epixa epixa deleted the jasper/backport/6907/4.x branch April 14, 2016 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments