On writing jQuery Plugins
<p>I've written my fourth plugin now and I'm starting to notice a trend in my development pattern and not sure if theres a better way to handle it.</p>

<p>I'm using the Plugin method (lightweight start pattern outlined by Addy Osmani, see here: <a href="http://addyosmani.com/resources/essentialjsdesignpatterns/book/#jquerypluginpatterns">http://addyosmani.com/resources/essentialjsdesignpatterns/book/#jquerypluginpatterns</a>)</p>

<p>In my Plugin.prototype, I have a bunch of methods including the init() function which I use to call all the methods in the plugin.  Pardon the confusion, but this is what it would look like:</p>

<pre><code>Plugin.prototype = {
init: function() {
this.doMethodOne();
this.doMethodTwo(this.element, this.options)
this.doMethodThree();
},

doMethodOne: function() { .. }
doMethodTwo: function(el, options) { .. }
doMethodThree: function() { .. }

}

$.fn[pluginName] = function ( options ) {
        return this.each(function () {
            if (!$.data(this, 'plugin_' + pluginName)) {
                $.data(this, 'plugin_' + pluginName, 
                new Plugin( this, options ));
            }
        });
    }
</code></pre>

<p>I left out some of the envelope code but I hope you get the idea.</p>

<p>I find my code a little lacking because I'm pretty much just calling my code linearly and storing it in a plugin namespace.</p>

<p>I've read the plugin development patterns and authoring text many times, and still write this way.  How can I improve this?</p>

<p>Thanks !</p>
