From d2c58c43aa2666559c56e4490d2ff35faf6732d8 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Thu, 13 Jul 2017 16:56:09 -0700 Subject: [PATCH] Removed Boolean constructor from pre-load patch --- src/tiledimage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tiledimage.js b/src/tiledimage.js index 61cb4a3d..779039d4 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -812,7 +812,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag * Set true to load even when hidden. Set false to block loading when hidden. */ setPreload: function(preload) { - this._preload = new Boolean(preload).valueOf(); + this._preload = !!preload; this._needsDraw = true; },