From 4eed4de9f27926a698e220dd83c288384fac7304 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Tue, 27 Dec 2016 13:10:43 -0700 Subject: [PATCH] Private collection property enum --- src/ol/collection.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ol/collection.js b/src/ol/collection.js index 9e98d97273..ec906f1c93 100644 --- a/src/ol/collection.js +++ b/src/ol/collection.js @@ -114,7 +114,7 @@ ol.Collection.prototype.item = function(index) { * @api stable */ ol.Collection.prototype.getLength = function() { - return /** @type {number} */ (this.get(ol.Collection.Property.LENGTH)); + return /** @type {number} */ (this.get(ol.Collection.Property_.LENGTH)); }; @@ -220,14 +220,15 @@ ol.Collection.prototype.setAt = function(index, elem) { * @private */ ol.Collection.prototype.updateLength_ = function() { - this.set(ol.Collection.Property.LENGTH, this.array_.length); + this.set(ol.Collection.Property_.LENGTH, this.array_.length); }; /** * @enum {string} + * @private */ -ol.Collection.Property = { +ol.Collection.Property_ = { LENGTH: 'length' };