Using this Difference between jQuery.extend and jQuery.fn.extend? Is there a way to have something like $('.selector').Group.Method(); and $('.selector').Group.Method2();
Right now I have a this in a main script
function Forty() {};
var Forty = new Forty();
(function(site) {
    $.extend(Forty, {
        getBaseUrl: function(extra) {
            extra = typeof extra !== 'undefined' ? extra : '';
            return Forty.get('baseUrl') + extra;
        },
        get: function($what) {
            return site[$what];
        }
    });
})(site);
Then later in that file I have:
$.extend(Forty, {
    flyOut: function() {
        $(this).on('click', function() {
            $('html').toggleClass('nav-open');
        });
    }
});
And at the very end I have:
$.fn.extend({Forty: Forty});
Right before I have this line:
$('.selector').Forty.flyOut();
So I'd really like something like $('.selector').Forty.flyOut();
Is something like this possible?
 
    