We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9507ec7 commit 87b54d2Copy full SHA for 87b54d2
1 file changed
src/textures/TextureSource.js
@@ -135,7 +135,7 @@ var TextureSource = new Class({
135
* @type {boolean}
136
* @since 3.0.0
137
*/
138
- this.isCanvas = (window.hasOwnProperty('HTMLCanvasElement') && source instanceof HTMLCanvasElement);
+ this.isCanvas = source instanceof HTMLCanvasElement;
139
140
/**
141
* Is the source image a Video Element?
0 commit comments