Use opt_this instead of opt_obj in ol.Map

This commit is contained in:
Tom Payne
2014-01-15 14:52:53 +01:00
parent 4d5a248803
commit 010f643f8f
+3 -3
View File
@@ -1274,13 +1274,13 @@ ol.Map.prototype.updateSize = function() {
/** /**
* @param {function(this: T)} f 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 * @template T
*/ */
ol.Map.prototype.withFrozenRendering = function(f, opt_obj) { ol.Map.prototype.withFrozenRendering = function(f, opt_this) {
this.freezeRendering(); this.freezeRendering();
try { try {
f.call(opt_obj); f.call(opt_this);
} finally { } finally {
this.unfreezeRendering(); this.unfreezeRendering();
} }