@@ -105,13 +105,7 @@ goog.exportProperty(
|
|||||||
*/
|
*/
|
||||||
ol.layer.Layer.prototype.getSourceState = function() {
|
ol.layer.Layer.prototype.getSourceState = function() {
|
||||||
var source = this.getSource();
|
var source = this.getSource();
|
||||||
var state;
|
return goog.isNull(source) ? ol.source.State.UNDEFINED : source.getState();
|
||||||
if (!goog.isNull(source)) {
|
|
||||||
state = source.getState();
|
|
||||||
} else {
|
|
||||||
state = ol.source.State.UNDEFINED;
|
|
||||||
}
|
|
||||||
return state;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user