I'm new to jquery but have done some js coding in the past. My initial interest is in the jq js code file. I find it a bit intimidating to unravel. I have a 700 page js book that doesn't seem to touch a lot of this. My questions:
1 What is this structure?
(
function( window, undefined ) {..}(window);
I've searched about and I think I understand it is an anonymous function that is automatically run on load, passing in a ref to the current browser window. Any other comments appreciated.
2 $
Where does the $ asignment come from. I can't see any reference to an alias of jquery to $?
3 Labels against functions
pushStack:
function( elems, name, selector ) {..} etc I see a label before anon functions, then the label name seems to be used as a name for the function. Whats that about, I see no mention in book about this.
4 Commas
Lots of these label/functions are separated by commas, are these global variables or what. Any overview of general structure would be appreciated.
Thanks to anyone who can be bothered to answer these confusions.
DD