layer clear bounds should be optional

This commit is contained in:
Alex Spera 2019-03-21 16:59:53 -06:00
parent f6a38edce7
commit e44f6df531

View File

@ -181,7 +181,7 @@ export class Layer extends BaseLayer {
Container.prototype.drawHit.call(this, canvas, top); Container.prototype.drawHit.call(this, canvas, top);
return this; return this;
} }
clear(bounds) { clear(bounds?) {
BaseLayer.prototype.clear.call(this, bounds); BaseLayer.prototype.clear.call(this, bounds);
this.getHitCanvas() this.getHitCanvas()
.getContext() .getContext()