Fix the optional check to include null

This commit is contained in:
Mei-Hui Su 2016-01-19 22:36:19 -08:00
parent 41ee1e27fd
commit ac0438e07b

View File

@ -384,7 +384,7 @@ $.Drawer.prototype = /** @lends OpenSeadragon.Drawer.prototype */{
this.context.save();
this.context.globalAlpha = opacity;
if (compositeOperation !== undefined) {
if (compositeOperation !== undefined && compositeOperation !== null) {
this.context.globalCompositeOperation = compositeOperation;
}
this.context.drawImage(