We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 833355a commit c703762Copy full SHA for c703762
1 file changed
src/display/canvas/CanvasPool.js
@@ -126,9 +126,10 @@ var CanvasPool = function ()
126
{
127
if (canvasType === undefined) { canvasType = CONST.CANVAS; }
128
129
- for (var i = 0, len = pool.length; i < len; i++)
+ for (var i = 0; i < pool.length; i++)
130
131
var container = pool[i];
132
+
133
if (!container.parent && container.type === canvasType)
134
135
return container;
0 commit comments