• Patrick Michaud's avatar
    Insert semicolon between JS files, fixes a JS syntax error when certain files are combined (#813) · c2c37c7c
    Patrick Michaud authored
    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)
    c2c37c7c