setting booleans the shortest way

This commit is contained in:
thejohnhoffer 2016-11-03 17:12:44 -04:00
parent 1baf086e1b
commit 3fc1948a44

View File

@ -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 = (true == preload);
this.preload = !!preload;
this._needsDraw = true;
},