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?
From the jquery source:
It’s just an alias, a shortcut, just like how
jQueryand$are the same.