From e487e1b21597218d70b16bf55d848459c51e0e1d Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Wed, 20 Nov 2013 10:57:45 +0100 Subject: [PATCH] Improve type checking in ol.Collection --- src/ol/collection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/collection.js b/src/ol/collection.js index 2d11d303be..be85ad78c4 100644 --- a/src/ol/collection.js +++ b/src/ol/collection.js @@ -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.): ?} f The function to call + * @param {function(this: S, T, number, Array.): *} 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.