Give ol.source.State its own file

This commit is contained in:
Frederic Junod
2016-08-31 11:38:44 +02:00
committed by Tim Schaub
parent 1d2e4fed4a
commit e757c014d1
2 changed files with 15 additions and 13 deletions

View File

@@ -1,22 +1,10 @@
goog.provide('ol.source.Source');
goog.provide('ol.source.State');
goog.require('ol');
goog.require('ol.Attribution');
goog.require('ol.Object');
goog.require('ol.proj');
/**
* State of the source, one of 'undefined', 'loading', 'ready' or 'error'.
* @enum {string}
*/
ol.source.State = {
UNDEFINED: 'undefined',
LOADING: 'loading',
READY: 'ready',
ERROR: 'error'
};
goog.require('ol.source.State');
/**

14
src/ol/source/state.js Normal file
View File

@@ -0,0 +1,14 @@
goog.provide('ol.source.State');
/**
* State of the source, one of 'undefined', 'loading', 'ready' or 'error'.
* @enum {string}
*/
ol.source.State = {
UNDEFINED: 'undefined',
LOADING: 'loading',
READY: 'ready',
ERROR: 'error'
};