1. 22 Nov, 2015 1 commit
  2. 24 Oct, 2015 1 commit
  3. 22 Oct, 2015 1 commit
  4. 12 Oct, 2015 1 commit
  5. 06 Sep, 2015 2 commits
  6. 22 Aug, 2015 1 commit
  7. 01 Aug, 2015 8 commits
  8. 29 Jul, 2015 1 commit
  9. 26 Jul, 2015 2 commits
  10. 22 Jul, 2015 1 commit
  11. 12 Jul, 2015 2 commits
  12. 02 Jul, 2015 3 commits
  13. 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
  14. 11 Jun, 2015 1 commit
  15. 06 Jun, 2015 3 commits
  16. 23 May, 2015 1 commit
  17. 10 May, 2015 1 commit
  18. 09 May, 2015 1 commit
  19. 03 May, 2015 1 commit
  20. 25 Apr, 2015 7 commits