Improve type checking in ol.Collection

This commit is contained in:
Tom Payne
2013-11-20 10:57:45 +01:00
parent 78380feb30
commit e487e1b215

View File

@@ -75,7 +75,7 @@ ol.Collection = function(opt_array) {
/**
* @private
* @type {Array}
* @type {Array.<*>}
*/
this.array_ = opt_array || [];
@@ -112,7 +112,7 @@ ol.Collection.prototype.extend = function(arr) {
/**
* Iterate over each element, calling the provided callback.
* @param {function(this: S, T, number, Array.<T>): ?} f The function to call
* @param {function(this: S, T, number, Array.<T>): *} f The function to call
* for every element. This function takes 3 arguments (the element, the
* index and the array). The return value is ignored.
* @param {S=} opt_obj The object to be used as the value of 'this' within f.