title: undefined on return property (XHR)
body: <p>undefined return on xhr post. I don't know where is the problem</p>
  
  <pre><code>var d=new XMLHttpRequest();
  var data;
  d.open("POST",b,!0);
  d.setRequestHeader("Content-type","application/json");
  d.onreadystatechange=function(){
   if(d.readyState==4){
     var data={status:d.status,text:d.responseText};
     return data.text; // this return undefined
    }
  };
  d.send(c);
  </code></pre>