I looked here and basically (as far as I can tell) you cannot use the same name for a function and an object, but looking at the following code, this does not seem to be the case. Can someone tell me how this works?
;(function($){ $.fn.superfish = function(op){ var sf = $.fn.superfish, c = sf.c, $arrow = $(['<span class="',c.arrowClass,'"> »</span>'].join('')), ... }; var sf = $.fn.superfish; ... sf.c = { bcClass : 'sf-breadcrumb', menuClass : 'sf-js-enabled', anchorClass : 'sf-with-ul', arrowClass : 'sf-sub-indicator', shadowClass : 'sf-shadow' }; ... })(jQuery);
And the superfish has a link to itself in its declaration. Could this lead to infinite recursion?
source share