Group Information- Members: 191
- Category: JavaScript
- Founded: Mar 7, 2008
- Language: English
Yahoo! Groups Tips
Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.
|
Stay up to speed on the latest Groups news and updates, visit the
Groups blog today!
Description
JSLint is a code quality tool. Warning: JSLint will hurt your feelings.
This group is for discussion of JSLint, including feature requests, complaints, update announcements, and testimonials.
When requesting membership, please present evidence that you are not a spambot.
|
|
Posted - Thu Jul 9, 2009 10:03 pm
|
Douglas Crockford
douglascrock...
Offline Send Email
|
Re: console read only
... They why are unary operators frowned upon by the jslint tool? ... Operators require something to act upon. ... Functions are objects. Types are derived
Posted - Thu Jul 9, 2009 9:57 pm
|
sandyhead25
Offline Send Email
|
Re: Nested ?: operator values.
Yeah, I did exactly that first too, but { val1 : val2 } is equivalent to { "val1" : val2 }. The braces notation only works if the sequence is expressed as
Posted - Thu Jul 9, 2009 5:41 pm
|
Michael Lorton
mlorton
Online Now Send Email
|
Re: Nested ?: operator values.
... I did a little tinkering, and here's what I came up with: return (this[prop] = ({ val1: val2, val2: val1 })[this[prop]]); What a fantastic construct.
Posted - Thu Jul 9, 2009 4:38 pm
|
pauanyu
Offline Send Email
|
Re: Nested ?: operator values.
... Oh, I see! So this works: return (this[prop] = (this[prop] === val1) ? val2 : (this[prop] === val2) ? val1 : this[prop]); Thanks for your help. Nice to
Posted - Thu Jul 9, 2009 3:31 pm
|
pauanyu
Offline Send Email
|
Add jslint_com to your personalized My Yahoo! page What's This?
|
Message History
Group Email Addresses
| Related Link: |
http://www.JSLint.com/ |
| Post message: |
jslint_com@yahoogroups.com |
| Subscribe: |
jslint_com-subscribe@yahoogroups.com |
| Unsubscribe: |
jslint_com-unsubscribe@yahoogroups.com |
| List owner: |
jslint_com-owner@yahoogroups.com |
|