From cf38fd4313ddd489a9815706eb466474ea9fbafa Mon Sep 17 00:00:00 2001 From: adabru Date: Thu, 23 Aug 2018 13:28:48 +0200 Subject: [PATCH] variable scoping issue, leading to clipped objects --- src/easeljs/display/StageGL.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/easeljs/display/StageGL.js b/src/easeljs/display/StageGL.js index 3ee5419b0..12394d6b7 100644 --- a/src/easeljs/display/StageGL.js +++ b/src/easeljs/display/StageGL.js @@ -2627,7 +2627,7 @@ this.createjs = this.createjs||{}; } if(!this._directDraw && (!ignoreCache && item.cacheCanvas === null && item.filters !== null && item.filters.length)) { - var bounds; + var bounds = null; if (item.bitmapCache === null) { bounds = item.getBounds(); item.bitmapCache = new createjs.BitmapCache();