title: Jquery Airport runs indefinitely
body: <p>I'm using Jquery Airport in the following way:</p>
  
  <pre><code>$('#basketTotal').airport([s]);
  $('#basketTotal').html(s);
  </code></pre>
  
  <p>Here's the Airport function:</p>
  
  <pre><code>(function($){ 
      $.fn.extend({  
          airport: function(array) {
          var self = $(this);
          var chars = ['1','2','3','4','5','6','7','8','9','0','.','£'];
          var longest = 0;
          var items = items2 = array.length;
          function pad(a,b) { return a + new Array(b - a.length + 1).join(' '); }
          $(this).empty();
          while(items--)
              if(array[items].length &gt; longest) longest = array[items].length;
          while(items2--)
              array[items2] = pad(array[items2],longest);
          spans = longest;
          while(spans--) {
              $(this).prepend("&lt;span class='c" + spans + "'&gt;&lt;/span&gt;");
          }
  
              function testChar(a,b,c,d){
              $(self).find('.c'+a).html((chars[b]==" ")?"&amp;nbsp;":chars[b]);
              setTimeout(function() {
                  if(b &gt; chars.length)
                      testChar(a+1,0,c,d+1);
                  else if(chars[b] != array[c].substring(d,d+1).toLowerCase())
                      testChar(a,b+1,c,d);
                  else
                      testChar(a+1,0,c,d+1);
              }, 15);
  
  
          }
          testChar(0,0,0,0);
      } 
  
      }); 
  })(jQuery);
  </code></pre>
  
  <p>I'm only ever going to pass one string to the airport function (not an array of strings).  Airport runs indefinitely and doesn't stop, but I need to make it stop and perform <code>$('#basketTotal').html(s);</code> when it's finished.</p>
  
  <p>How can I make the function stop when it's finished one iteration of the animation?</p>