Removed Boolean constructor from pre-load patch

This commit is contained in:
Ian Gilman 2017-07-13 16:56:09 -07:00
parent e8971b2940
commit d2c58c43aa

View File

@ -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;
},