Private collection property enum
This commit is contained in:
@@ -114,7 +114,7 @@ ol.Collection.prototype.item = function(index) {
|
|||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.Collection.prototype.getLength = function() {
|
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
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.Collection.prototype.updateLength_ = function() {
|
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}
|
* @enum {string}
|
||||||
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.Collection.Property = {
|
ol.Collection.Property_ = {
|
||||||
LENGTH: 'length'
|
LENGTH: 'length'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user