The idea here is that you pass jQuery as $ internal function, making sure $ IS jQuery. This is usually used to protect code that uses $ , especially when using jQuery along with other libraries that use $ as mootools.
For example, if you had this code in <head>
<script src="jquery.js"></script> <script> </script> <script src="anotherlibrary.js"></script> <script> </script>
Joseph
source share