can you explain this jquery method from jquery.js
Posted
by mrblah
on Stack Overflow
See other posts from Stack Overflow
or by mrblah
Published on 2009-11-11T01:09:08Z
Indexed on
2010/04/17
15:23 UTC
Read the original article
Hit count: 372
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 ) {
© Stack Overflow or respective owner