Skip to content

Commit 4382d2e

Browse files
author
David Gillen
committed
added autoCache saftey check to getbounds
1 parent 4ec0be0 commit 4382d2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/easeljs/display/DisplayObject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ this.createjs = this.createjs||{};
11571157
p.getBounds = function() {
11581158
if (this._bounds) { return this._rectangle.copy(this._bounds); }
11591159
var cache = this.bitmapCache;
1160-
if (cache) {
1160+
if (cache && this.cacheCanvas) {
11611161
return cache.getBounds();
11621162
}
11631163
return null;

0 commit comments

Comments
 (0)