>On 4/20/07, Jim Davis <[EMAIL PROTECTED]> wrote: > >Very cool. I didn't realize the var keyword actually "did" anything. >I thought it was somewhat of a formality in JS (not unlike terminating >a line with a semi-colon being optional). > >I had thought any variable created inside of a function (regardless of >whether or not var'd) would be local to only that function.
It usually doesn't matter, of course (since Javascript is essentially single-threaded)... and then you get a case where you loop over a function and index counts go haywire or you start playing with setInterval and things get bizarre. Then you learn yourself a little sumpthin' sumpthin' 'bout "var". ;^) Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:233136 Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
