can you explain this jquery method from jquery.js
- by mrblah
Trying to understand how jquery works under the covers, what's the difference between:
jQuery.fn and jQuery.prototype
jQuery = window.jQuery = window.$ = function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( selector, context );
},
and then:
jQuery.fn = jQuery.prototype = {
init: function( selector, context ) {