title: vector source returning empty in source.getFeatures()
body: <p>I have vector layer in my app as following:</p>
  
  <pre><code>var vectorSource = new ol.source.Vector({
    format: new ol.format.GeoJSON(),
    crossOrigin:"Anonymous",
    url: 'http://localhost:8080/geoserver/wfs?service=WFS&amp;' +
          'version=1.0.0&amp;request=GetFeature&amp;typename=genesis:Building_WGS&amp;' +
          'outputFormat=application/json&amp;srsname=EPSG:4326'
  });
  
  
  var vector1 = new ol.layer.Vector({
    source: vectorSource,
    style: new ol.style.Style({
      stroke: new ol.style.Stroke({
        color: 'rgba(0, 0, 255, 1.0)',
        width: 2
      })
    })
  });
  </code></pre>
  
  <p>I can see the layer on the map when i run it. But the problem is when i use alert message to check the feature info I see empty. I have a cold like this:</p>
  
  <pre><code>alert(vectorSource.getFeatures());
  </code></pre>
  
  <p>can anyone suggest what am i doing wrong here? Any help is accpreciated.</p>
  
  <p>AJ</p>