Recently I wrote two articles on how to extend jQuery using its plug in system and a shorthand for that. If you look into them closely they are actually the same thing. The only difference being that the code in first one is wrapped in this anonymous JavaScript function: (function ($) {
// code goes here
})(jQuery)
Little research shows that this allows the use of $ within this function
// code goes here
})(jQuery)
Little research shows that this allows the use of $ within this function
Comments
Post a Comment