title: jQuery fn.extend ({bla: function(){}} vs. jQuery.fn.bla
body: <p>OK I think I get
  <a href="https://stackoverflow.com/questions/1991126/difference-jquery-extend-and-jquery-fn-extend">Difference between jQuery.extend and jQuery.fn.extend?</a> </p>
  
  <p>in that the general extend can extend any object, and that fn.extend is for plugin functions that can be invoked straight off the jquery object with some internal jquery voodoo.   </p>
  
  <p>So it appears one would invoke them differently.  If you use general extend to extend object  obj by adding function y, then the method  would attach to that object,   obj.y()  but if you use fn.extend then they are
  attach straight to the jquery object $.y().... Have I got that correct yes or no and if no what do I have wrong in my understanding?    </p>
  
  <h2>Now MY question:</h2>
  
  <p>The book I am reading advocates using</p>
  
  <pre><code>jQuery.fn.extend({
      a: function() { },
      b: function() { }
  });
  </code></pre>
  
  <p>syntax but in the docs it says</p>
  
  <pre><code>jQuery.fn.a = function() { };
  </code></pre>
  
  <p>and I guess if you wanted b as well it would be</p>
  
  <pre><code>jQuery.fn.b = function() { };
  </code></pre>
  
  <p>Are these functionally and performance-wise equivalent and if not what is the difference?  </p>
  
  <p>Thank you very much.  I am digging jQuery!  </p>