Collection docs

This commit is contained in:
Tim Schaub
2015-04-04 09:43:10 +02:00
parent 1a10686299
commit fdabcd8219

View File

@@ -115,6 +115,8 @@ ol.Collection.prototype.clear = function() {
/**
* Add elements to the collection. This pushes each item in the provided array
* to the end of the collection.
* @param {Array.<T>} arr Array.
* @return {ol.Collection.<T>} This collection.
* @api stable
@@ -216,9 +218,9 @@ ol.Collection.prototype.push = function(elem) {
/**
* Removes the first occurrence of elem from the collection.
* Remove the first occurrence of an element from the collection.
* @param {T} elem Element.
* @return {T|undefined} The removed element or undefined if elem was not found.
* @return {T|undefined} The removed element or undefined if none found.
* @api stable
*/
ol.Collection.prototype.remove = function(elem) {