Re: [jquery-dev] Using a single 'var' statement per scope

2009-11-30 Thread Karl Swedberg
I agree with Mike about the importance of readable code. The jQuery core used to have a lot more of this sort of trick than it does now. I like it and understand it much more now. If I recall correctly, indexOf() is quite a bit faster than test(). Also, this bit from Crockford's JavaScript: th

Re: [jquery-dev] Using a single 'var' statement per scope

2009-11-30 Thread Michael Geary
I don't care much for the single var with multiple variables at the top of a function. I like seeing the "var" on a variable where it is first used. It makes it easier for me to see that there actually *is* a "var". But you're right, it does save a few bytes. Maybe not much after the code is gzippe

[jquery-dev] Re: Ant build

2009-11-30 Thread DBJDBJ
For ANT one needs JDK aka Java Development Kit ... For us several milion Microserfs, maybe one VisualStudio solution file (aka sln file) would be usefull ? Or I am missing something fundamental ? --DBJ On Nov 27, 5:39 pm, John Resig wrote: > Just to clarify: Java/JRE isn't required in order to

[jquery-dev] Using a single 'var' statement per scope

2009-11-30 Thread lrbabe
I'm wondering if there are some arguments against following this rule. There are many places in the code where it is ignored. I've also seen a trick to save another few bites where indexOf is involved by using the ~ operator: replacing tests such as if ( str.indexOf(".") >= 0 ) by if ( !~str.index