fixed a bug: in case if the environment does not support HTMLVideoElement.

This commit is contained in:
J.C 2019-10-16 13:39:52 +08:00
parent 9507ec7591
commit 87b54d2f4f

View file

@ -135,7 +135,7 @@ var TextureSource = new Class({
* @type {boolean}
* @since 3.0.0
*/
this.isCanvas = (window.hasOwnProperty('HTMLCanvasElement') && source instanceof HTMLCanvasElement);
this.isCanvas = source instanceof HTMLCanvasElement;
/**
* Is the source image a Video Element?