Rename _ol_source_State_ to SourceState

This commit is contained in:
Frederic Junod
2017-12-19 08:33:14 +01:00
parent 003c7bb209
commit d0728a5e65
12 changed files with 35 additions and 35 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import EventType from '../events/EventType.js';
import {getIntersection} from '../extent.js';
import _ol_layer_Base_ from '../layer/Base.js';
import _ol_obj_ from '../obj.js';
import _ol_source_State_ from '../source/State.js';
import SourceState from '../source/State.js';
/**
@@ -232,7 +232,7 @@ _ol_layer_Group_.prototype.getLayerStatesArray = function(opt_states) {
* @inheritDoc
*/
_ol_layer_Group_.prototype.getSourceState = function() {
return _ol_source_State_.READY;
return SourceState.READY;
};
export default _ol_layer_Group_;
+2 -2
View File
@@ -9,7 +9,7 @@ import _ol_layer_Base_ from '../layer/Base.js';
import _ol_layer_Property_ from '../layer/Property.js';
import _ol_obj_ from '../obj.js';
import RenderEventType from '../render/EventType.js';
import _ol_source_State_ from '../source/State.js';
import SourceState from '../source/State.js';
/**
* @classdesc
@@ -124,7 +124,7 @@ _ol_layer_Layer_.prototype.getSource = function() {
*/
_ol_layer_Layer_.prototype.getSourceState = function() {
var source = this.getSource();
return !source ? _ol_source_State_.UNDEFINED : source.getState();
return !source ? SourceState.UNDEFINED : source.getState();
};