title: array length not returning to 0
body: <p>While I'm trying to work out the length of an array :</p>
  
  <pre><code>$('input:checkbox[name="promoOn[]"]').click( function(){
    var attributes = [];
    $('input:checkbox[name="promoOn[]"]:checked').each(function(index) { 
      attributes.push($(this).val());
      $('#promo-on-total').html(attributes.length);
    });       
  });
  </code></pre>
  
  <p>For some reason the array.length does not return to 0?
  Here are the results:</p>
  
  <pre><code>Checkbox 1, checked = array.length = 1
  Checkbox 2, checked = array.length = 2
  Checkbox 2, unchecked = array.length = 2
  Checkbox 1, unchecked = array.length = 1 (not 0???)
  </code></pre>
  
  <p>Any ideas what may be wrong?</p>