Loading ...
Sorry, an error occurred while loading the content.

40269Re: YUI Compresser could produce shorter output

Expand Messages
  • crlender
    Nov 2, 2008
    • 0 Attachment
      --- In ydn-javascript@yahoogroups.com, dav.glass@... wrote:
      > You also need to remember that the Compressor is removing the line
      breaks, so your example:
      >
      > for (var k in map)
      > if (map.hasOwnProperty(k))
      > if (!(k in target))
      > target[k] = map[k];
      >
      > Would result in a syntax error when line breaks are removed.

      No, it wouldn't; it's perfectly legal ECMAScript. The curlies really
      are optional (just like in C, Java, and other languages with C-like
      syntax).


      - Conrad
    • Show all 15 messages in this topic