title: jQuery - what does the newHeader property/field do?
body: <p>I admit to being somewhat of a copy and paste JavaScript developer (with a strong background in other languages). I'm using the jQuery accordion, and using cookies to save the selected accordion section. I found some code which I integrated into my code. The key section is as follows.</p>
  
  <pre><code>change: function (event, ui) {
       var index = $(this).find("h3").index(ui.newHeader[0]);
       $.cookie(accordion, index);
  }
  </code></pre>
  
  <p>This works, but I hate using code I don't understand. I understand that the index is discovered by using the find method (which makes the assumption that I don't have any h3s within the content), but what I don't understand is what the ui.newHeader[0] is doing. What is the newHeader array, and what is its purpose here?</p>
  
  <p>Thanks,
  Erick</p>