From fdea68324221ac9720db1539562602f4a0e0836d Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Wed, 15 Jan 2014 15:09:01 +0100 Subject: [PATCH] Use opt_this instead of opt_obj in ol.structs.LRUCache --- src/ol/structs/lrucache.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ol/structs/lrucache.js b/src/ol/structs/lrucache.js index 3fc7a2427d..e5fecc8d2e 100644 --- a/src/ol/structs/lrucache.js +++ b/src/ol/structs/lrucache.js @@ -102,13 +102,13 @@ ol.structs.LRUCache.prototype.containsKey = function(key) { * to call for every entry from the oldest to the newer. This function takes * 3 arguments (the entry value, the entry key and the LRUCache object). * The return value is ignored. - * @param {S=} opt_obj The object to be used as the value of 'this' within f. + * @param {S=} opt_this The object to use as `this` in `f`. * @template S */ -ol.structs.LRUCache.prototype.forEach = function(f, opt_obj) { +ol.structs.LRUCache.prototype.forEach = function(f, opt_this) { var entry = this.oldest_; while (!goog.isNull(entry)) { - f.call(opt_obj, entry.value_, entry.key_, this); + f.call(opt_this, entry.value_, entry.key_, this); entry = entry.newer; } };