From 1baf086e1bd7c4251c436fe5ab84454c5962c244 Mon Sep 17 00:00:00 2001 From: thejohnhoffer Date: Thu, 3 Nov 2016 17:11:22 -0400 Subject: [PATCH] setting booleans the easy way --- src/tiledimage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tiledimage.js b/src/tiledimage.js index 4f3d477c..bff8603a 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -781,7 +781,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag * @param {Boolean} whether to load tiles without drawing in this tiledImage. */ setPreload: function(preload) { - this.preload = Boolean(preload); + this.preload = (true == preload); this._needsDraw = true; },