From e757c014d1f3d91c091016ba2873f05661a42302 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 31 Aug 2016 11:38:44 +0200 Subject: [PATCH] Give ol.source.State its own file --- src/ol/source/source.js | 14 +------------- src/ol/source/state.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 src/ol/source/state.js diff --git a/src/ol/source/source.js b/src/ol/source/source.js index acfd9b21fa..6fd4cdf57f 100644 --- a/src/ol/source/source.js +++ b/src/ol/source/source.js @@ -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'); /** diff --git a/src/ol/source/state.js b/src/ol/source/state.js new file mode 100644 index 0000000000..e53aa054d2 --- /dev/null +++ b/src/ol/source/state.js @@ -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' +}; +