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 1297 - 1326 of 3202   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
1297 Rob Richardson
erobrich Send Email
May 3, 2010
10:42 pm
You're creating it with 'function&#39; then invoking it right away. Is there a similar way to use the keyword 'function&#39; to call a previously defined function?...
1298 Cheney, Edward A SSG ...
sandyhead25 Send Email
May 4, 2010
4:23 am
Michael, Your example is partially accurate, but consider the following: var f = function () {}; function g () {} if (typeof(f) === typeof(g)) { ...
1299 Michael Mikowski
z_mikowski Send Email
May 10, 2010
3:31 pm
$0.02: First, "the good parts" advocates the following form, as it illustrates the true nature of functions: 1. var fnOnClick = function (){ ... }; Others...
1300 adam.kumpf Send Email May 10, 2010
3:47 pm
As a developer, I use the console.log() function (or ADSAFE.log() internal to an adsafe widget) frequently to debug my code. I've noticed that when there is an...
1301 adam.kumpf Send Email May 10, 2010
4:19 pm
Since ADSafe widgets are basically sandboxed javascript/dom apps, is there any suggestion on how to nicely shut them down (such as an ADSAFE.stop() function)? ...
1302 Douglas Crockford
douglascrock... Send Email
May 10, 2010
6:17 pm
... You can call the widget's .remove() method....
1303 Douglas Crockford
douglascrock... Send Email
May 10, 2010
6:21 pm
... Please let me see your suggestions....
1304 adam.kumpf Send Email May 10, 2010
6:42 pm
... Hi Doug, I added the ADSAFE.log() call to all three try/catch blocks. The most notable of which was when calling the supplied function: try { f(dom,...
1305 adam.kumpf Send Email May 10, 2010
6:58 pm
Is it possible to manipulate and draw on a <canvas> element from within an ADSAFE widget? I can select the canvas element, and it exists in the protected...
1306 Douglas Crockford
douglascrock... Send Email
May 10, 2010
8:28 pm
... You can use the new getContext method. ADsafe is discussed at http://tech.groups.yahoo.com/group/caplet/...
1307 avegaart Send Email May 11, 2010
6:18 am
I just ran the ExtJS javascript library through JSLint again and I am pleasantly surprised by the progress that JSLint has made in the past few months. The...
1308 Cheney, Edward A SSG ...
sandyhead25 Send Email
May 11, 2010
11:19 am
Try these: Example 1: var a = (0.5 * 2); Example 2: var x, y; if (x === 1 && y === 1) { //do this } Do not perform assignment in a condition. That should...
1309 avegaart Send Email May 11, 2010
11:54 am
Thanks for the reply. I know I can fix issues 1 and 2, but my question was why the parser stops when it should continue with a warning. ps. Your solution to...
1310 Douglas Crockford
douglascrock... Send Email
May 11, 2010
1:27 pm
... 1. Fix your code, then it won't stop. 2. Fix your code, then it won't stop. 3. b was used before it was declared. This can confuse a reader, who will...
1311 Cheney, Edward A SSG ...
sandyhead25 Send Email
May 11, 2010
4:45 pm
... You are still performing assignment in a condition and not evaluation. At the same time never use redundant assignment, such as x = y = 1, because that is...
1312 Rob Richardson
erobrich Send Email
May 11, 2010
5:04 pm
Is there a good rule-of-thumb for what type of errors stop JSLint immediately and what type of errors accumulate? Rob ________________________________ From:...
1313 Cheney, Edward A SSG ...
sandyhead25 Send Email
May 12, 2010
4:25 am
Rob, Evaluation of the code, JSLint function, will tell you exactly that. It is not likely that there are static definitions that point certain errors to...
1314 Arthur Blake
blakesys Send Email
May 17, 2010
3:32 pm
With the following input, /** * A comment *//A redundant comment */ JSLint reports: Problem at line 3 character 4: Unclosed regular expression. I think this is...
1315 Arthur Blake
blakesys Send Email
May 17, 2010
3:33 pm
Actually, I see the problem now. My fault. */ terminates the first comment early .. Oops. ... [Non-text portions of this message have been removed]...
1316 santini.alberto Send Email May 17, 2010
3:38 pm
I pasted the following snippet in jslint.com text area, selected "The Good Parts" options and pressed "JSLint" button:function foo(p1) { var a = p1, b; return...
1317 santini.alberto Send Email May 18, 2010
10:39 am
The snippet: function foo(p1) { var a = p1, b; return a; } Regards, Alberto...
1318 santini.alberto Send Email May 19, 2010
10:44 am
It seems there is a difference if I use, for instance, FireFox (3.6.3) on Windows XP: the web version catches correctly the two errors. In my first post I used...
1319 Douglas Crockford
douglascrock... Send Email
May 19, 2010
1:25 pm
... It would seem that there is a bug in Rhino....
1320 santini.alberto Send Email May 19, 2010
1:48 pm
... On Windows I used "cscript" executable and the output is equals to rhino one. Same bug? Possible but with low probability. Regards, Alberto...
1321 Simon Kenyon Shepard
sks0001010 Send Email
May 19, 2010
2:44 pm
Apologies if this has already been covered at an earlier date, I recently came across this as an example of good coding practice: // Don't if...
1322 Mark Volkmann
mark_volkmann Send Email
May 19, 2010
2:54 pm
On Wed, May 19, 2010 at 9:43 AM, Simon Kenyon Shepard < ... I would do it like this: units = type(this._position[property]) === "number" ? "px" : ""; nodeStyle...
1323 cheesox Send Email May 20, 2010
5:06 pm
Thanks to Douglas, et al, for JSLINT. I use it on Windows, with cscript.exe, in two ways: - from the command line and in build scripts (makefiles). - and...
1324 Marc Draco
smidoid Send Email
May 21, 2010
11:52 am
I'm new here (but a old hand with JSLint -which I consider an excellent teaching aid for Javascript; and a must if you want your code to run on Internet...
1325 santini.alberto Send Email May 21, 2010
8:57 pm
... I jslinted the snippet with V8 [1]: it reports only "use strict" error. No idea because it doesn't report also "unused variable" error. Regards, Alberto ...
1326 Dan McNeil
dwmcneil... Send Email
May 27, 2010
4:27 pm
nice refactor ________________________________ From: Mark Volkmann <r.mark.volkmann@...> To: jslint_com@yahoogroups.com Sent: Wed, May 19, 2010 10:53:58...
Messages 1297 - 1326 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