title: jquery double call due to wrapper
body: <p>I have a number of jquery functions that are executed twice when wrapped with the standard $(function(){. One of these functions as shown below will execute once unwrapped, and will execute twice with the wrapper around it. </p>
  
  <p>I have an ajax call that I made a few adjustments to as well. When you wrap it, it calls the new version once and the old version once. Unwrapped just calls the old version. I saw a bug about double execution due to the function being embedded in a div. Is this possible? </p>
  
  <p>Working on jsfiddle demo. Will have it up shortly.</p>
  
  <pre><code>$(".words").click(function(event) {
      event.preventDefault();
      $("#hideme:first").attr('id', '').insertAfter($('#9999'));  
  }); 
  </code></pre>
  
  <p>UPDATE: I was able to fix some of the calls when I found a bad event handler in a third party code. However, one still remains. I have changed the id to ensure that there isn't a conflict. It seems that there is another bad event handler somewhere. Is there any way in firebug to find the event handler to an anchor?</p>