mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Fix the optional check to include null
This commit is contained in:
parent
41ee1e27fd
commit
ac0438e07b
@ -384,7 +384,7 @@ $.Drawer.prototype = /** @lends OpenSeadragon.Drawer.prototype */{
|
|||||||
|
|
||||||
this.context.save();
|
this.context.save();
|
||||||
this.context.globalAlpha = opacity;
|
this.context.globalAlpha = opacity;
|
||||||
if (compositeOperation !== undefined) {
|
if (compositeOperation !== undefined && compositeOperation !== null) {
|
||||||
this.context.globalCompositeOperation = compositeOperation;
|
this.context.globalCompositeOperation = compositeOperation;
|
||||||
}
|
}
|
||||||
this.context.drawImage(
|
this.context.drawImage(
|
||||||
|
Loading…
Reference in New Issue
Block a user