Why jQuery do this: jQuery.fn.init.prototype = jQuery.fn?

Viewed 26289

Little extended question is why jQuery do

jQuery.fn = jQuery.prototype = {
init: function() {...},
    f1: function() {...},
    ...
};
jQuery.fn.init.prototype = jQuery.fn;

Why not simply add f1() etc into init.prototype? Is it only aesthetic or there are some deep ideas?

2 Answers
Related