title: Limit jQuery.ajaxSetup scope to inside a specific object only
body: <p>This might be strange, but what I am looking for is how would I make the scope of <code>jQuery.ajaxSetup()</code> inside a specific object only. Let me give you an example, I have two objects <code>obj_1</code> and <code>obj_2</code>. I want to write ajaxSetup in such a way that all my ajax calls inside an object will use one set of params and all my calls in second object will use other set of params.</p>
  
  <p>Eg</p>
  
  <pre><code>var obj_1 = {
  
      my_func : function(){
  
          $.ajax({
              success : function(){
                  // do something
                  // all ajax calls in this object should use one set of params (type,dataType,headers etc)
              }
          })
  
      }
  
  };
  
  var obj_2 = {
  
      my_func : function(){
  
          $.ajax({
              success : function(){
                  // do something
                  // all ajax calls in this object should use different params (type,dataType,headers etc)
              }
          })
  
      }
  
  };
  </code></pre>
  
  <p>I want to do this so that I don't have to write all params in every ajax call.</p>