1. 03 Dec, 2015 4 commits
  2. 22 Nov, 2015 1 commit
  3. 24 Oct, 2015 1 commit
  4. 22 Oct, 2015 1 commit
  5. 12 Oct, 2015 1 commit
  6. 06 Sep, 2015 2 commits
  7. 22 Aug, 2015 1 commit
  8. 01 Aug, 2015 8 commits
  9. 29 Jul, 2015 1 commit
  10. 26 Jul, 2015 2 commits
  11. 22 Jul, 2015 1 commit
  12. 12 Jul, 2015 2 commits
  13. 02 Jul, 2015 3 commits
  14. 24 Jun, 2015 1 commit
    • Safely concatenate JavaScript · 2af0561d
      Most JavaScript packages wrap their code in IIFEs, which is good.
      
      Pipeline used to concatenate JS only with a newline. That can break those IIFES
      though:
      
          (function() {
            // package A
          }()) // No semicolon! Most people put one here, but unfortunately not all!
          (function() {
            // package B
          }());
      
      The above is equivalent to:
      
          (function() {
            // package A
          }())(function() {
            // package B
          }());
      
      Suddenly we have a function call!
      
      With this commit, JS is concatenated with a newline followed by a semicolon,
      which fixes the above issue:
      
          (function() {
            // package A
          }()) // No semicolon! Most people put one here, but unfortunately not all!
          ;(function() {
            // package B
          }());
      
      There is no need to worry about superfluos semicolons, such as:
      
          (function() {
            // package A
          }());
          ;;(function() {
            // package B
          }());
      
      That is still valid JavaScript and the extra semicolons will be removed by the
      minifier.
      Simon Lydell committed
  15. 11 Jun, 2015 1 commit
  16. 06 Jun, 2015 3 commits
  17. 23 May, 2015 1 commit
  18. 10 May, 2015 1 commit
  19. 09 May, 2015 1 commit
  20. 03 May, 2015 1 commit
  21. 25 Apr, 2015 3 commits