Don't store static variable and function into the exported object

This commit is contained in:
Frederic Junod
2017-12-21 16:25:34 +01:00
parent ab628cb828
commit 194394f7c5
+6 -6
View File
@@ -113,7 +113,7 @@ var _ol_PluggableMap_ = function(options) {
_ol_Object_.call(this); _ol_Object_.call(this);
var optionsInternal = _ol_PluggableMap_.createOptionsInternal(options); var optionsInternal = createOptionsInternal(options);
/** /**
* @type {boolean} * @type {boolean}
@@ -1377,7 +1377,7 @@ _ol_PluggableMap_.prototype.unskipFeature = function(feature) {
* @type {Array.<ol.renderer.Type>} * @type {Array.<ol.renderer.Type>}
* @const * @const
*/ */
_ol_PluggableMap_.DEFAULT_RENDERER_TYPES = [ var DEFAULT_RENDERER_TYPES = [
RendererType.CANVAS, RendererType.CANVAS,
RendererType.WEBGL RendererType.WEBGL
]; ];
@@ -1387,7 +1387,7 @@ _ol_PluggableMap_.DEFAULT_RENDERER_TYPES = [
* @param {MapOptions} options Map options. * @param {MapOptions} options Map options.
* @return {ol.MapOptionsInternal} Internal map options. * @return {ol.MapOptionsInternal} Internal map options.
*/ */
_ol_PluggableMap_.createOptionsInternal = function(options) { function createOptionsInternal(options) {
/** /**
* @type {Element|Document} * @type {Element|Document}
@@ -1427,10 +1427,10 @@ _ol_PluggableMap_.createOptionsInternal = function(options) {
assert(false, 46); // Incorrect format for `renderer` option assert(false, 46); // Incorrect format for `renderer` option
} }
if (rendererTypes.indexOf(/** @type {ol.renderer.Type} */ ('dom')) >= 0) { if (rendererTypes.indexOf(/** @type {ol.renderer.Type} */ ('dom')) >= 0) {
rendererTypes = rendererTypes.concat(_ol_PluggableMap_.DEFAULT_RENDERER_TYPES); rendererTypes = rendererTypes.concat(DEFAULT_RENDERER_TYPES);
} }
} else { } else {
rendererTypes = _ol_PluggableMap_.DEFAULT_RENDERER_TYPES; rendererTypes = DEFAULT_RENDERER_TYPES;
} }
/** /**
@@ -1498,5 +1498,5 @@ _ol_PluggableMap_.createOptionsInternal = function(options) {
values: values values: values
}; };
}; }
export default _ol_PluggableMap_; export default _ol_PluggableMap_;