I have this code from a large jQuery file and I need to call a click function nested within a login script.

Code:
jstore.plugins.login = function(url, options) { 

        var login = jstore.plugins.login;
        var opts = $.extend(true, {}, jstore.plugins.login.defaults, options);
        var server = jstore.url2server({ url: url });

        return this.each(function() {
                var $this = $(this);

                var id = jstore.uid();

                $this.append('<div class=\'jstore_widget jstore_login\' id=\'' + id + '\'></div>');

                var updated = function(server) {
                    var element = document.getElementById(id);
                    if(element) {
                        var e = $(element);
			var loginDisplayed = $('.jstore_login_name', element).length == 1;
			
			if (server.loggedIn() === false && loginDisplayed) {
			    return true;
			}

                        e.html(login.getHTML(server, opts));
                        if(server.loggedIn()) {
                            e.click(function() {
                                    var server = jstore.getServer(url);
 if(server && server.loggedIn()) {
 server.logout();
                                    }
                                });
I need to call this part of the code from another function elsewhere in the file:

Code:
 e.click(function() {
  var server = jstore.getServer(url);
if(server && server.loggedIn()) {
server.logout();
 }
I tried
Code:
jstore.plugins.login.updated().e.click();
but this is apparently not correct. Would someone suggest the correct way?