Merge pull request #940 from elemoine/getarray

Export ol.Collection#getArray
This commit is contained in:
Éric Lemoine
2013-09-02 09:24:22 -07:00
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@
@exportProperty ol.Collection.prototype.clear @exportProperty ol.Collection.prototype.clear
@exportProperty ol.Collection.prototype.extend @exportProperty ol.Collection.prototype.extend
@exportProperty ol.Collection.prototype.forEach @exportProperty ol.Collection.prototype.forEach
@exportProperty ol.Collection.prototype.getArray
@exportProperty ol.Collection.prototype.getAt @exportProperty ol.Collection.prototype.getAt
@exportProperty ol.Collection.prototype.getLength @exportProperty ol.Collection.prototype.getLength
@exportProperty ol.Collection.prototype.insertAt @exportProperty ol.Collection.prototype.insertAt
+4
View File
@@ -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. * @return {Array} Array.
*/ */
ol.Collection.prototype.getArray = function() { ol.Collection.prototype.getArray = function() {