openlayers/ol3 — pull request #894 by tschaub (2013-08-07 17:26:45+00:00)
Title: GeoJSON source is not handling non-featureCollection data correctly

Change, for example, the vectorlayer example so the data is 1 feature, not a feature collection. It fails with a undefined has no length error. AFAICS, this is because parseFeaturesFromString/Object assume everything is a feature collection. I think it should be doing parse_() not parseFeatureCollection_(). read() works fine.