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

Comments

Projects
None yet
1 participant
@Constellation
Member

Constellation commented Apr 4, 2013

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