Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

jslint_com · This group has moved to Google Plus.

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 583
  • Category: JavaScript
  • Founded: Mar 7, 2008
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 2003 - 2032 of 3202   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
2003 Woomla
woomla... Send Email
Mar 4, 2011
3:59 pm
You have to reply and edit the code there because the html strips the spaces. Or get the code from: http://jsfiddle.net/5WLp8/. Copy and paste it into...
2004 Douglas Crockford
douglascrock... Send Email
Mar 4, 2011
4:30 pm
... No it shouldn't. JSLint allows those directives at statement position only....
2005 Joshua Bell
inexorabletash Send Email
Mar 4, 2011
7:09 pm
On Fri, Mar 4, 2011 at 8:29 AM, Douglas Crockford <douglas@...> ... Does the jslint directive apply within a lexical scope, or does it function like...
2006 abyssoft@...
abyssoft... Send Email
Mar 4, 2011
8:48 pm
Neither of those are lexically correct however /*jslint bitwise: false*/ // allow bitwise operators function twiddle(a, b) { return a & b; } /*jslint bitwise:...
2007 abyssoft@...
abyssoft... Send Email
Mar 4, 2011
8:49 pm
is. Hate when I forget to finish a though. Thats what I get for multitasking 8-/...
2008 Douglas Crockford
douglascrock... Send Email
Mar 5, 2011
2:51 am
... It acts as a pragma. I do not recommend this use. I regret having allowed it....
2009 Zhami
ossayu Send Email
Mar 5, 2011
12:29 pm
Woomla: You could also move the pragma further in (rather than out) In my code, I disable such pragma immediately after the line of code I need it suspended...
2010 Douglas Crockford
douglascrock... Send Email
Mar 5, 2011
3:24 pm
The /*jslint */ directive now respects function scope. That means that if you change an option setting inside of a function body, it will revert on leaving the...
2011 Marc Draco
smidoid Send Email
Mar 6, 2011
1:50 pm
I'm not sure if HaXe is a dirty word around here, but I've been playing with it recently and found it a reasonable progression from Javascript when I was...
2012 Douglas Crockford
douglascrock... Send Email
Mar 6, 2011
11:40 pm
The /*properties*/ (formerly known as /*members*/) and the /*global*/ directives, when placed in a function, do not influence the environment outside of the...
2013 jeddahbill Send Email Mar 7, 2011
12:47 am
... The new implementation of /*properties*/ is causing problems. Consider the following code: (function () { ````var x; ````x = { ````````fa: function (arg) {...
2014 Woomla
woomla... Send Email
Mar 7, 2011
9:11 am
Great! Many thanks. No need to do something alike myself anymore :-)...
2015 Douglas Crockford
douglascrock... Send Email
Mar 7, 2011
2:01 pm
... Sorry about that. I was finishing this in an airport, and I rushed the push to make a flight. Please try it now....
2016 jeddahbill Send Email Mar 7, 2011
3:52 pm
... Thank you!...
2017 spence.randall@...
spence.randa... Send Email
Mar 7, 2011
11:28 pm
Given the following code: /*jslint browser: true */ var isReady = (function () { ````var poll = setInterval(function () { ````````if...
2018 Douglas Crockford
douglascrock... Send Email
Mar 8, 2011
12:08 am
There are some cases where it is troublesome to use a variable while it is being initialized, such as var x = x + 1; JSLint is not able to determine which...
2019 Jordan
ljharb Send Email
Mar 8, 2011
12:19 am
Is there an option so that known non-troublesome code can skip that warning? This warning essentially kills automatic linting of code that employs the module...
2020 spence.randall@...
spence.randa... Send Email
Mar 8, 2011
12:39 am
Could JSLint skip warning when the variable is referenced inside a function body? These would be the most likely useful cases, but would still allow for a...
2021 spence.randall@...
spence.randa... Send Email
Mar 8, 2011
7:00 pm
Jordan is right, this new rule is troublesome with the module pattern. It also seems to be inconsistent. Take the following code for example: var dom =...
2022 Douglas Crockford
douglascrock... Send Email
Mar 8, 2011
9:26 pm
... No, it isn't. Declare the variable before giving it a value that depends on the same variable. It is easy....
2023 Ezequiel
thehungerforce Send Email
Mar 9, 2011
3:40 am
Because I'm using my own function for the if statement, this doesn't work: example: var isOwnProperty, object, i; isOwnProperty = function(object, key) {....};...
2024 Douglas Crockford
douglascrock... Send Email
Mar 9, 2011
1:16 pm
... You turned on the forin option. You can not do that....
2025 John Hawkinson
john.hawkinson Send Email
Mar 9, 2011
1:26 pm
... This is a bit more troublesome for event handlers. Leaving the browser world for a moment, I encountered this morning: (function() { var pdfdone =...
2026 Stjepan Rajko
stjepan_rajko Send Email
Mar 9, 2011
3:13 pm
Hello, On the following code: function One(a, b, c) { ````this.value = a + b + c; } function Two(a, b, c) { ````this.value = c + b + a; } var which =...
2027 Luke Page
page.luke... Send Email
Mar 9, 2011
4:05 pm
jslint cannot determine that the expression One relating to a function will be used to construct a new object. You have three options. This is controlled by...
2028 Stjepan Rajko
stjepan_rajko Send Email
Mar 9, 2011
4:42 pm
Luke, thanks for your reply. The warnings were generated by jslint.com with "Require Initial Caps for constructors" turned off, and adding /*jslint newcap:...
2029 Alexandre Morgaut
morgaut_a Send Email
Mar 9, 2011
4:58 pm
You may also write the code this way var Which = Math.round(Math.random()) ? One : Two; var x = new Which("1", "2", "3"); ;-)...
2030 Stjepan Rajko
stjepan_rajko Send Email
Mar 9, 2011
5:21 pm
... That takes care of the error, thank you! :-) [Non-text portions of this message have been removed]...
2031 Rob Richardson
erobrich@... Send Email
Mar 9, 2011
5:22 pm
Your code is a perfect example of "clever" -- one of the best tools a coder has for showing their ingenuity and skill while simultaneously confusing people...
2032 Kent Davidson
kentdavidson Send Email
Mar 9, 2011
7:12 pm
I gotta chime here and agree with Douglas. However, I think jslint 2011-03-07 is broken: var dude = 20 * dude; fails to throw an error at all: FireFox 3.6:...
Messages 2003 - 2032 of 3202   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help