Thread:Pecoes/@comment-4674838-20121012013714/@comment-4674838-20121014220907

This caused me a minor headache earlier:

Prints jQuery object

Now we if modify our closure to run on $(document).ready, we can't pass parameters :(

So we try defining a local variable instead:

Now, what I would expect is "create a new local variable called jQuery that has the same value as the global jQuery variable" -- that's how field hiding works in object oriented languages.

But of course, since JavaScript hoists variable declarations, this isn't the case at all (wish I would have remembered this fact immediately so I wouldn't have had to waste time tracking down the bug)