Merge pull request #1800 from jachym/patch-1

setState never occures
This commit is contained in:
Tom Payne
2014-03-04 13:43:42 +01:00

View File

@@ -128,11 +128,11 @@ ol.source.VectorFile.prototype.handleXhrIo_ = function(event) {
goog.asserts.fail();
}
goog.dispose(xhrIo);
if (goog.isDef(source)) {
if (goog.isDefAndNotNull(source)) {
this.readFeatures_(source);
} else {
goog.asserts.fail();
this.setState(ol.source.State.ERROR);
goog.asserts.fail();
}
} else {
this.setState(ol.source.State.ERROR);