diff options
| author | Patrick Michaud <pmichaud@uw.edu> | 2017-01-02 23:50:02 -0800 |
|---|---|---|
| committer | Johannes Linke <karyon@users.noreply.github.com> | 2017-01-03 08:50:02 +0100 |
| commit | c2c37c7c3000dfce96a62e0e28de79e30ae81285 (patch) | |
| tree | 0091a078913b8d09c4238f6534edfcac99ee2994 /.gitignore | |
| parent | 785e62a4c941b324de0030907a3688bfe92ba46d (diff) | |
| download | django-compressor-c2c37c7c3000dfce96a62e0e28de79e30ae81285.tar.gz | |
Insert semicolon between JS files, fixes a JS syntax error when certain files are combined (#813)
compressor will turn files that look like
File1.js:
(function($) { console.log("run"); })(window)
File2.js:
(function($) { console.log("run 2"); })(window)
Into:
(function($) { console.log("run"); })(window)
(function($) { console.log("run 2"); })(window)
which will give an error like "Uncaught TypeError: (intermediate value)(...) is not a function"
This commit changes that output to:
(function($) { console.log("run"); })(window);(function($) { console.log("run 2"); })(window)
Diffstat (limited to '.gitignore')
| -rw-r--r-- | .gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2,6 +2,7 @@ build compressor/tests/static/CACHE compressor/tests/static/custom compressor/tests/static/js/066cd253eada.js +compressor/tests/static/js/d728fc7f9301.js compressor/tests/static/test.txt* dist |
