Thanks for your answer, As it's a type confusion, of course I can hide them with tolerate type confusion. But this setting is quite useful, I prefer to correct...
2432
Erik Eckhardt
vorpalmage
Jul 6, 2011 6:01 pm
Then my huge apologies for getting it wrong. I guess I overstated the case. ... [Non-text portions of this message have been removed]...
2431
Douglas Crockford
douglascrock...
Jul 6, 2011 5:48 pm
... You were wrong on most counts. Your advice to use the Tolerate type confusion option was good....
2430
Erik Eckhardt
vorpalmage
Jul 6, 2011 5:40 pm
JSLint is requiring the entire javascript world at large to collectively decide on whether "query" is an object or a function, and then use it only that way,...
2429
Jérôme DESPATIS
jdespatis
Jul 6, 2011 4:46 pm
When scanning a .js, JSLint reports this: Problem at line 119 character 35: Type confusion: function and '{': object. djTagonomyStore.fetch({query: {type:...
2428
wildboar17
Jul 6, 2011 10:28 am
... Thank you....
2427
Douglas Crockford
douglascrock...
Jul 5, 2011 2:37 pm
... During development, you can use the test url. <script src="test"></script> In deployment, you provide an array of approved url strings as option.approved....
2426
wildboar17
Jul 5, 2011 6:41 am
//code: <div id="WIDGETNAME_"> html markup required by the widget <script> ADSAFE.id("WIDGETNAME_"); </script> <script src="easy.js"></script> <script> ...
2425
wildboar17
Jul 4, 2011 6:40 pm
... It's now correct. Thanks for quick response....
so, it will be easier to understand write different arrays that hold redirects to random generated names of stuff in objects, sweet. Turning off jslint would...
2421
sandyhead25
Jul 1, 2011 1:50 pm
Sorry, Update to erroneous, but passing pattern: var a = function () { ...."use strict"; ....var b = function () { ........var d; ....}, ........c; }; Pattern...
2420
Douglas Crockford
douglascrock...
Jun 30, 2011 8:06 pm
... I does not pass when I try it....
2419
Luke Page
page.luke...
Jun 29, 2011 9:44 pm
It would be useful to have 2 error messages if possible.. or at least change wording as I've seen people think they can ignore it because it isn't a more harsh...
2418
chriskennish
Jun 29, 2011 7:39 pm
After a bit more digging, I think I've got the heart of it, and it's far simpler than I first imagined. The problem, as I see it, is as follows. This code: ...
2417
douglascrockford
douglascrock...
Jun 29, 2011 2:49 pm
... I went to some trouble to specifically allow that case. I now think it was a mistake. The correct way to write a recursive function is var fn = function...
2416
Robert Sauer-Ernst
frankxberlin
Jun 29, 2011 12:43 pm
well var fn = function () { "use strict"; fn(); }; passes without error and without options ... Von: Erik Eckhardt <erik@...> Am: Tue, 28 Jun 2011...
2415
chriskennish
Jun 29, 2011 8:17 am
Let's look at this another way. Without "Tolerate misordered definitions", we get the following: //Example 1 var abc = def(), def = function () {}; // Problem...
2414
Cheney, Edward A SSG ...
sandyhead25
Jun 29, 2011 1:28 am
The following code passes the JSLint white space rule: var a = function () { ...."use strict"; ....var b = function () { ............var c; ....}, ........c; ...
2413
Erik Eckhardt
vorpalmage
Jun 28, 2011 9:27 pm
I *think* "Tolerate misordered definitions" is only for the form: var fn = function() { ___fn(); } Not to actually use fn before it is declared. Perhaps...
2412
Douglas Crockford
douglascrock...
Jun 28, 2011 9:15 pm
... My point was that you should fix your code. Misordered definitions are one thing, but you are trying to capture variables that haven't even been defined...
2411
chriskennish
Jun 28, 2011 8:59 pm
Thanks for this. I'm not sure I understand. I realise that I can "fix" my code by changing the order of the variable declarations, but that is not my point....
2410
Douglas Crockford
douglascrock...
Jun 28, 2011 8:52 pm
The /*properties */ directive can now accept types. For example, the directive /*properties a: array, b: boolean, n: number, o: object, r: regexp, any: * */ ...
2409
Douglas Crockford
douglascrock...
Jun 28, 2011 8:41 pm
... Fix your code....
2408
chriskennish
Jun 28, 2011 11:09 am
Great tool. One minor thing which tripped me up is that the "Tolerate misordered definitions" is not entirely tolerant. For example: While: var abc = xyz(), ...
2407
livefree75
Jun 27, 2011 3:46 pm
... of code. ... API ... checking ... that ... Not only that, but specifying arguments for two different Javascript libraries may cause this error. E.g.: ...
2406
Jakob Kruse
thekrucible
Jun 26, 2011 2:46 pm
Yet anoher example of the confusion option leading to just that (confusion). /Jakob ... [Non-text portions of this message have been removed]...
2405
Luke Page
page.luke...
Jun 26, 2011 1:22 pm
Your resolution makes the code confusing does it not? If I saw it I would be wondering why you created the alias and whether it wa a throw back to something...
2404
IceBox
santini.alberto
Jun 26, 2011 11:16 am
... I resolved using the following approach: var YDateFormat = Y.DataType.Date.format; ... YDateFormat(ld, {'format39;: "%a, %b %d, %H:%M"}); Regards, Alberto...