javascript - How Jquery scope gets passed to ready() methods callback function? -


i got following code jquery.noconflict() docs

<script type="text/javascript" src="other_lib.js"></script> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript">   $.noconflict();   jquery(document).ready(function($) {     // code uses jquery's $ can follow here.   });   // code uses other library's $ can follow here. </script> 

as can see, ready methods callback function accepts parameter passing parameter ?

"we" aren't passing function. jquery library passing it, jquery api (which jquery object), function callback.

see also: avoiding conflicts other libraries


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -