From 7af4cbb75e0daccc9f41b836859e29de7fe2902c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 29 Aug 2013 13:32:53 +0200 Subject: [PATCH 1/2] Export ol.Collection#getArray --- src/ol/collection.exports | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/collection.exports b/src/ol/collection.exports index 5d64b817fb..5e00258f1b 100644 --- a/src/ol/collection.exports +++ b/src/ol/collection.exports @@ -2,6 +2,7 @@ @exportProperty ol.Collection.prototype.clear @exportProperty ol.Collection.prototype.extend @exportProperty ol.Collection.prototype.forEach +@exportProperty ol.Collection.prototype.getArray @exportProperty ol.Collection.prototype.getAt @exportProperty ol.Collection.prototype.getLength @exportProperty ol.Collection.prototype.insertAt From d68f411e828d184f546ab65f060a5c260e89b89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Mon, 2 Sep 2013 18:24:07 +0200 Subject: [PATCH 2/2] Add doc for ol.Collection#getArray --- src/ol/collection.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/collection.js b/src/ol/collection.js index 993efd2a6c..7034e69135 100644 --- a/src/ol/collection.js +++ b/src/ol/collection.js @@ -120,6 +120,10 @@ ol.Collection.prototype.forEach = function(f, opt_obj) { /** + * Get a reference to the underlying Array object. Warning: if the array + * is mutated, no events will be dispatched by the collection, and the + * collection's "length" property won't be in sync with the actual length + * of the array. * @return {Array} Array. */ ol.Collection.prototype.getArray = function() {