jetheredge/SquishIt — Issue #154: SquishIt fails to minify spin.min.js correctly
Author: bevacqua
Created: 2012-02-19 01:31:47+00:00
State: open

```c#
@{
string[] scriptLinks = new[]
{
Url.Content("~/content/script/spin.min.js"),
Url.Content("~/content/script/jquery.spin.js"),
Url.Content("~/content/script/jquery.form.js"),
Url.Content("~/content/script/b.core.js"),
};
}
@{
@* we don't bundle external javascript links nor localization messages. *@
const string jQueryVersion = "1.7.1";
string jQueryExternal = "http://ajax.googleapis.com/ajax/libs/jquery/{0}/jquery.min.js".FormatWith(jQueryVersion);
string jQueryLocal = @Url.Content("~/content/script/jquery-{0}.min.js".FormatWith(jQueryVersion));
}

@(Bundle.JavaScript()
.Add(scriptLinks)
.WithoutTypeAttribute()
.ForceRelease()
.MvcRender("~/all.js?_=1")
)
```

When I add the spin.min.js to the bundle, the script breaks.