ded / domready

lets you know when the dom is ready
MIT License
874 stars 129 forks source link

Add missing semicolon in build output #40

Open thibaudcolas opened 9 years ago

thibaudcolas commented 9 years ago

Disclaimer: this is probably one of the worst possible fixes, but it does the job.

There is a bug / misleading feature in the smoosh tool, which removes the semicolon at the end of the compressed JavaScript output. This is perfectly fine when the compressed file (here, ready.min.js) is used as is, but it can break the code if the file is concatenated to other JS code.

Here is a fiddle which demonstrates the issue and the fix. This should be directly fixed in smoosh, so:

Hope you find this useful,