From 1a55cbb54201ddeca11a7510e3a9eae654b4e1b6 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Tue, 27 Dec 2016 13:35:02 -0700 Subject: [PATCH] Private enum for layer group properties --- src/ol/layer/group.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ol/layer/group.js b/src/ol/layer/group.js index aa5f8e2149..142f80c5f4 100644 --- a/src/ol/layer/group.js +++ b/src/ol/layer/group.js @@ -48,7 +48,7 @@ ol.layer.Group = function(opt_options) { this.listenerKeys_ = {}; ol.events.listen(this, - ol.Object.getChangeEventType(ol.layer.Group.Property.LAYERS), + ol.Object.getChangeEventType(ol.layer.Group.Property_.LAYERS), this.handleLayersChanged_, this); if (layers) { @@ -158,7 +158,7 @@ ol.layer.Group.prototype.handleLayersRemove_ = function(collectionEvent) { */ ol.layer.Group.prototype.getLayers = function() { return /** @type {!ol.Collection.} */ (this.get( - ol.layer.Group.Property.LAYERS)); + ol.layer.Group.Property_.LAYERS)); }; @@ -171,7 +171,7 @@ ol.layer.Group.prototype.getLayers = function() { * @api stable */ ol.layer.Group.prototype.setLayers = function(layers) { - this.set(ol.layer.Group.Property.LAYERS, layers); + this.set(ol.layer.Group.Property_.LAYERS, layers); }; @@ -232,7 +232,8 @@ ol.layer.Group.prototype.getSourceState = function() { /** * @enum {string} + * @private */ -ol.layer.Group.Property = { +ol.layer.Group.Property_ = { LAYERS: 'layers' };