title: jquery plugin $.extend
body: <p>if i extend the jquery <code>fn</code>(like $.fn.extend) i write my plugin:</p>
  
  <pre><code>(function($){
      $.fn.extend({
          functionName : function(){
               //function returns
               return this.each(function(){
                    $(this).append("&lt;div&gt;text&lt;/div&gt;");
               });
          }
      });
  })(jQuery);
  </code></pre>
  
  <p>when i want to extend jQuery namespace i write it like this:</p>
  
  <pre><code>(function($){
      $.extend({
          functionName : function(){
               //function returns
  
          }
      });
  })(jQuery);
  </code></pre>
  
  <p>what i don't know is how to write the 'return' in this case</p>