Skip to content

Comments

[backport] PR #6911 to 5.0#6919

Closed
elastic-jasper wants to merge 1 commit into5.0from
jasper/backport/6911/5.0
Closed

[backport] PR #6911 to 5.0#6919
elastic-jasper wants to merge 1 commit into5.0from
jasper/backport/6911/5.0

Conversation

@elastic-jasper
Copy link
Contributor

Backport PR #6911

Commit 1:
[internal] Replace var with let in ui/public/vislib

This change was applied to all .js files under src/ui/public/vislib.

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=

---------

**Commit 1:**
[internal] Replace var with let in ui/public/vislib

This change was applied to all .js files under src/ui/public/vislib.

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: 91c20ce
* Authored by Court Ewing <court@epixa.com> on 2016-04-12T22:46:51Z
@elastic-jasper elastic-jasper added the backport This PR is a backport of another PR label Apr 14, 2016
@panda01 panda01 assigned epixa and unassigned panda01 Apr 14, 2016
@epixa epixa closed this Apr 14, 2016
@epixa
Copy link
Contributor

epixa commented Apr 14, 2016

Don't bother backporting to 5.0. I know it's breaking from convention, but we only created that branch because it was required to generate alpha docs. From a dev standpoint, master is still 5.0.

@epixa epixa deleted the jasper/backport/6911/5.0 branch April 14, 2016 14:53
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.

3 participants