title: Javascript inconsitency with Safari/Mac
body: <p><br>
  i'm trying to adapt this great script from <a href="https://github.com/balupton/history.js/wiki/Intelligent-State-Handling" rel="nofollow">Balupton's GitHub</a> to build a web app. Now everything works fine, but Safari/Mac fails on the first click, which is due to this part:</p>
  
  <pre><code>    var first = true;
      $(window).bind('statechange',function(){
        if ( first ) { first = false; return; };
            // stuff
      });
  </code></pre>
  
  <p>I've tested nn  FF and Chrome for Mac and Linux, this works as it should (prevent reloading of the Ajax Part on the first load of the page) but in Safari it prevents the first user activated reload. If I comment out those bits:</p>
  
  <pre><code>    //var first = true;
      $(window).bind('statechange',function(){
    //    if ( first ) { first = false; return; };
            // stuff
      });
  </code></pre>
  
  <p>FF and Chrome for Mac and Linux will reload the Ajax bit directly on the first page load. Safari won't.</p>
  
  <p>Can you tell me how to solve this?</p>
  
  <p>Thanks,
  thomas</p>
  
  <p>Edit: It turned out to be a problem in <code>history.js</code> ...</p>