From 010f643f8f6138fc534d758d05bbe937b462ce4e Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Wed, 15 Jan 2014 14:52:53 +0100 Subject: [PATCH] Use opt_this instead of opt_obj in ol.Map --- src/ol/map.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ol/map.js b/src/ol/map.js index fdde46f9b4..074fe22354 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -1274,13 +1274,13 @@ ol.Map.prototype.updateSize = function() { /** * @param {function(this: T)} f Function. - * @param {T=} opt_obj Object. + * @param {T=} opt_this The object to use as `this` in `f`. * @template T */ -ol.Map.prototype.withFrozenRendering = function(f, opt_obj) { +ol.Map.prototype.withFrozenRendering = function(f, opt_this) { this.freezeRendering(); try { - f.call(opt_obj); + f.call(opt_this); } finally { this.unfreezeRendering(); }