title: jQuery countdown not restarting
body: <p>I'm using the jquery countdown to countdown to a specific date and time. When the counter expires I want the counter to be destroyed, restarted with the current time plus 10 minutes and with a new expiry-function.</p>
  
  <p>But for some reason, when my first timer runs out the expiry function for the second timer is executed and the 10-min countdown starts.</p>
  
  <p>I have tried several combinations including 'option', moving the function around...but I can't make it work so that the last function (a simple console log) is called as the final expiry function.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>var select = new Date(data.select);  //date from server
  
  $('#counter').countdown({
      until: select,
      format: 'dhms',
      layout: ' ({h&lt;}{hn} timer {h&gt;}{m&lt;}{mnn} minutter {m&gt;}{s&lt;}{snn} sekunder{s&gt;})',
      onExpiry: onCounter
  });
  
  function onCounter() {
      $('#counter').countdown('destroy');
      $('#counter').countdown({
          until: '+10m',
          format: 'ms',
          layout: ' ({m&lt;}{mnn} minutter {m&gt;}{s&lt;}{snn} sekunder{s&gt;})',
          onExpiry: console.log('times up') // last function to be called
      });
  }
  </code></pre>