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

Re: [jslint] Re: Require Quoted Keys in Objects

Expand Messages
  • Michael Mikowski
    I gave you a data point, not a suggestion for workflow. Use it as you wish. Oh, and you re welcome. ________________________________ From: Dave
    Message 1 of 10 , Mar 17, 2010
    • 0 Attachment
      I gave you a data point, not a suggestion for workflow. Use it as you wish. Oh, and you're welcome.



      ________________________________
      From: Dave <david.hampton@...>
      To: jslint_com@yahoogroups.com
      Sent: Wed, March 17, 2010 3:24:17 PM
      Subject: [jslint] Re: Require Quoted Keys in Objects


      Clearly, JSlint is for uncompressed, unobfuscated code.

      It's meant to catch things in a development environment. To suggest using a compressor as a tool for validating good code is a bit silly.

      Certainly, you couldn't effectively debug and optimise code in a dev environment if it was already compressed and obfuscated.

      --- In jslint_com@yahoogro ups.com, "z_mikowski" <z_mikowski@ ...> wrote:
      >
      > If your team uses a build process with a good compressor (e.g. YUI Compressor), it will quote keys as necessary.
      >
      > --- In jslint_com@yahoogro ups.com, "davehamptonusa" <david.hampton@ > wrote:
      > >
      > > Many browsers barf when an object key is a reserved word. Sure, they
      > > should be able to figure out that we are in an object.... But IE
      > > can't.Example:
      > > var foop = { class: 'barley', style: 'ale'}; //Barfs in ie...
      > > var foop = { 'class': 'barley', 'style': 'ale'}; //Happy in all
      > > environements
      > > As Such, I require my team to quote all object keys. As much as I think
      > > this should be a Good Parts requirement, I'll settle for a toggle in
      > > JSLint...
      > > Any thoughts?
      > >
      > >
      > > [Non-text portions of this message have been removed]
      > >
      >




      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.