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

压缩工具会把else if压缩成elseif,导致报错 #7

Open
iwillwen opened this issue Jul 25, 2012 · 1 comment
Open

压缩工具会把else if压缩成elseif,导致报错 #7

iwillwen opened this issue Jul 25, 2012 · 1 comment

Comments

@iwillwen
Copy link

现在用JSinJS的缩进工具来做minify发现一个bug。

if () {
  // statements
} else if () {
  //statements
}

以上代码会被压缩成

if(){}elseif(){}

这样引擎就会报错。求fix。

@wintercn
Copy link
Member

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants