Just look at any jQuery plugin's source code. It's always
$.fn.pluginName = function() {
foo('bar');
return baz;
};
Where does the fn
name come from, and is it just a simple alias to $.prototype
, or does it serve some other purpose(s), as well?