title: jQuery - pass array of functions to ajax success callback
body: <p>I'm fairly new with jQuery, and I'm trying to call two functions on successful ajax (since the documentation says as of 1.5 success callback can take an array of functions).</p>
  
  <p>If I do this, everything works fine:</p>
  
  <pre><code>$.ajax({
      url : sJSONFilePath,
      dataType : 'json',
      success : foo(data)
  });
  </code></pre>
  
  <p>What do I need to do to pass in an array of functions? If I try the following, I get a "Uncaught TypeError: Cannot read property 'length' of undefined" error in the console:</p>
  
  <pre><code>$.ajax({
      url : sJSONFilePath,
      dataType : 'json',
      success : [foo(data), bar(data)]
  });
  </code></pre>
  
  <p>I was unable to find any examples of this feature being used. Thanks in advance, and sorry if this is dumb.</p>