title: Object has not method (jQuery)
body: <p>I have this in a js file:</p>
  
  <pre><code>$(document).ready(function(e){
      jQuery.fn.SaveAdd = function(titulo,contenido,tags) {
         // code
      }
  });
  </code></pre>
  
  <p>And I imported the js to the HTML document, and I called the function:</p>
  
  <pre><code>$(document).ready(function(){
      $("#iSave").click(function(){
          // declaration of vars instead of this line
          $(this).SaveAdd(title,content,tags);    
      });
  });
  </code></pre>
  
  <p>and I have the error:  has not the method SaveAdd. BUT when u use this:</p>
  
  <pre><code>$(document).ready(function(){
          // declaration of vars instead of this line
          $(this).SaveAdd(title,content,tags);    
  });
  </code></pre>
  
  <p>The function runs rightly :S i dont know what is wrong...</p>