How come, if I define jQuery.fn.my_method = function(){...}
, jQuery.my_method
is not undefined even though I put my_method
under the .fn
property and not under jQuery
directly?
I'm just curious.
<script>
jQuery.fn.my_method = function(){...};
jQuery.my_method();//valid call even though i put my_method under .fn
</script>