mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
setting booleans the shortest way
This commit is contained in:
parent
1baf086e1b
commit
3fc1948a44
@ -781,7 +781,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
* @param {Boolean} whether to load tiles without drawing in this tiledImage.
|
* @param {Boolean} whether to load tiles without drawing in this tiledImage.
|
||||||
*/
|
*/
|
||||||
setPreload: function(preload) {
|
setPreload: function(preload) {
|
||||||
this.preload = (true == preload);
|
this.preload = !!preload;
|
||||||
this._needsDraw = true;
|
this._needsDraw = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user