Is http://docs.jquery.com/Plugins/Authoring wrong?
<p>I am learning how to create my own plugin, and am strongly following the article at <a href="http://docs.jquery.com/Plugins/Authoring" rel="nofollow">http://docs.jquery.com/Plugins/Authoring</a>.  The particular portion I have a question relates to adding events to elements as shown on <a href="http://docs.jquery.com/Plugins/Authoring#Events" rel="nofollow">http://docs.jquery.com/Plugins/Authoring#Events</a>.</p>

<p>A live demo is included at <a href="http://jsfiddle.net/bhcEk/" rel="nofollow">http://jsfiddle.net/bhcEk/</a>.  It is basically the same, except binds the click() event instead of the resize event, and applies the plugin to several elements of a given class, except one element.</p>

<p>Clicking the element results in (3) alerts.  As seen by the below script taken from the article, the event is added within the each() loop, so this is to be expected.</p>

<p>EDIT. Yicks!  It is worse than I though.  It adds it the the windows element, so all elements when clicked will trigger it.  Maybe just return $(window) with $(this)?</p>

<p>It seems to me the article is wrong and it should be added (and removed under destroy) just once.  The people who wrote the article, however, are much more experienced than me, and it might be foolish for me to doubt them.  Is the article wrong, or is it me? </p>

<pre><code>init : function( options ) {
 return this.each(function(){
  $(window).bind('resize.tooltip', methods.reposition);
});
</code></pre>
