diff --git a/src/textures/TextureSource.js b/src/textures/TextureSource.js index c0c4ccfd4..8806a8f76 100644 --- a/src/textures/TextureSource.js +++ b/src/textures/TextureSource.js @@ -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?