title: Qunit data erased
body: <p>Can someone explain why in the third console log the data is empty?</p>
  
  <p>This is a shortened version of a problem I'm having with my tests. I'm noticing the absence of data in my test functions, inserted in "QUnit.test (...)". Some of the functions, triggered by events, use this data and errors are occurring.</p>
  
  <p>An executable code can be found on <a href="http://jsbin.com/gufaqujaju/edit?html,js,console,output" rel="nofollow noreferrer">JsBin</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    $("p").data("thedata", 1);
    console.log("First", $("p").data());
  });
  
  QUnit.config.autostart = false;
  setTimeout(function() {
    QUnit.start();
    console.log("Second", $("p").data());
  }, 1000);
  
  setTimeout(function() {
    console.log("Third", $("p").data());
  }, 2000);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"&gt;&lt;/script&gt;
    &lt;link href="http://code.jquery.com/qunit/qunit-2.1.1.css" rel="stylesheet" /&gt;
    &lt;script src="http://code.jquery.com/qunit/qunit-2.1.1.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;div id="qunit"&gt;&lt;/div&gt;
    &lt;div id="qunit-fixture"&gt;
      &lt;p&gt;content&lt;/p&gt;
    &lt;/div&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>