title: syntax error on safari after bundling code
body: <p>Hi I have JavaScript function that's throwing syntax error on <strong>safari</strong> but the code works in all other browsers (chrome, ff). I am receiving this error only after the inbuild minification process <em>bundling</em> of .Net.</p>
  
  <blockquote>
    <p>Error: SyntaxError: Unexpected token 'function'</p>
  </blockquote>
  
  <p><strong>Before bundling :</strong></p>
  
  <pre><code>function btnStatus($btn, $status) {
  
      if ($status) {
          $btn.prop('disabled', false);
      }
      else {
          $btn.attr('disabled', true);
      }
  
      return false;
  }
  </code></pre>
  
  <p><strong>After bundling :</strong></p>
  
  <pre><code>function btnStatus(n, t) { return t ? n.prop("disabled", !1) : n.attr("disabled", !0), !1}
  </code></pre>
  
  <p>Can someone show me the insight of this error! </p>