in jQuery what is the difference between $.myFunction and $.fn.myFunction ?

Posted by codeninja on Stack Overflow See other posts from Stack Overflow or by codeninja
Published on 2010-03-07T21:20:07Z Indexed on 2010/03/08 0:12 UTC
Read the original article Hit count: 585

I'm delving into writing plugins for jQuery and I'm trying to understand the distinction between $.f and $.fn.f

I've seen pluggin authors use both, or sometimes assign $.f = $.fn.f

Can someone explain this to me, reasoning, benefits, etc?

© Stack Overflow or respective owner

Related posts about jquery-plugins

Related posts about extensions