Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce multiple variable declarations into one #68

Open
Constellation opened this issue Apr 4, 2013 · 0 comments
Open

Reduce multiple variable declarations into one #68

Constellation opened this issue Apr 4, 2013 · 0 comments
Assignees

Comments

@Constellation
Copy link
Member

function t() {
  var i = 20, i2 = 30;
  test();
  var i3 = 40;
}

to

function t() {
  var i = 20, i2 = 30, i3;
  test();
  i3 = 40;

Because of removal of "var ", script size becomes small in many cases.

@ghost ghost assigned Constellation Apr 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant