Skip to content

Commit 87b54d2

Browse files
committed
fixed a bug: in case if the environment does not support HTMLVideoElement.
1 parent 9507ec7 commit 87b54d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/textures/TextureSource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ var TextureSource = new Class({
135135
* @type {boolean}
136136
* @since 3.0.0
137137
*/
138-
this.isCanvas = (window.hasOwnProperty('HTMLCanvasElement') && source instanceof HTMLCanvasElement);
138+
this.isCanvas = source instanceof HTMLCanvasElement;
139139

140140
/**
141141
* Is the source image a Video Element?

0 commit comments

Comments
 (0)