From 2c6dfb1b0b0eb56cdbe67d0e5f8a10ceccc445b9 Mon Sep 17 00:00:00 2001 From: Larissa Smith Date: Tue, 1 Sep 2015 10:48:41 -0600 Subject: [PATCH] Changed this to _this and added documentation on setAutoRefigureSizes. --- src/world.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/world.js b/src/world.js index 4cfe76ce..c272ff14 100644 --- a/src/world.js +++ b/src/world.js @@ -54,7 +54,7 @@ $.World = function( options ) { this._needsDraw = false; this._autoRefigureSizes = true; this._delegatedFigureSizes = function(event) { - if (this._autoRefigureSizes) { + if (_this._autoRefigureSizes) { _this._figureSizes(); } }; @@ -282,7 +282,8 @@ $.extend( $.World.prototype, $.EventSource.prototype, /** @lends OpenSeadragon.W * As a performance optimization, setting this flag to false allows the bounds-change event handler * on tiledImages to skip calls to _figureSizes. If a lot of images are going to be positioned in * rapid succession, this is a good idea. _figuresSizes only needs to be called once when the - * positioning is done. + * positioning is done. _autoRefigureSizes should be set back to true when finished, or the system + * may behave oddly, * @param {Boolean} [value] The value to which to set autoRefigureSizes. */ setAutoRefigureSizes: function(value) {