jQuery prototype
<p>According to this StackOverflow answer <a href="http://stackoverflow.com/questions/4083351/what-does-jquery-fn-mean">What does jQuery.fn mean?</a>, the fn property in <code>jQuery.fn.jquery</code> is an alias to the prototype property. I assume that this would be the same in these two methods whose full code is below</p>

<p><code>$.fn.map = function()</code>  and <code>$.fn.tweets = function()</code> </p>

<p>My question then, is, if, for example,  $.fn.tweets uses the prototype to create a tweets method, would this code with <code>$('tweets').tweets</code>  be calling it...</p>

<pre><code>var $tweets = $('#tweets').tweets({
        query: buildQuery(approxLocation),
        template: '#tweet-template'
    });
</code></pre>

<p>and, if so, how might it trigger that method. <strong>For example, does the mere creation of the variable on file loading trigger that function,</strong> which has other methods inside of it, namely query?  Thanks for your help</p>

<p>Full code of methods</p>

<pre><code>  $.fn.map = function(method) {
         console.trace();
         console.log(method);
        if (method == 'getInstance') {
            console.log("fn.map");
            return this.data('map');
        }

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

            if (map &amp;&amp; MyMap.prototype[method]) {
                 map[method] (Array.prototype.slice.call( arguments, 1 ));
            } else if ( typeof method === 'object' || ! method ) {
                var options = method;
                $this.data('map', new MyMap( this, options ));
            } else {
                $.error( 'Method ' +  method + ' does not exist on jQuery.map' );
            }
        });
    }

   $.fn.tweets = function(method) {

        if ( methods[method] ) {
            return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
        } else if ( typeof method === 'object' || ! method ) {

            return methods.init.apply( this, arguments );
        } else {
            $.error( 'Method ' +  method + ' does not exist on jQuery.tweets' );
        }
    }
</code></pre>

<p><strong>variables that call those methods?</strong></p>

<pre><code> var $tweets = $('#tweets').tweets({
        query: buildQuery(approxLocation),
        template: '#tweet-template'
    });
var $map = $('#map').map({
    initialLocation: approxLocation,
    radius: 1000,
    locationChanged: function(location) {
        $tweets.tweets('setQuery', buildQuery(location));
    }
});
</code></pre>
