mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix new exception in unit tests.
This commit is contained in:
parent
da216aa581
commit
de9653ab45
1 changed files with 2 additions and 1 deletions
|
@ -136,7 +136,8 @@ var CanvasView = View.extend(/** @lends CanvasView# */{
|
|||
ctx = this._context,
|
||||
size = this._viewSize;
|
||||
ctx.clearRect(0, 0, size.width + 1, size.height + 1);
|
||||
project.draw(ctx, this._matrix, this._pixelRatio);
|
||||
if (project)
|
||||
project.draw(ctx, this._matrix, this._pixelRatio);
|
||||
this._needsUpdate = false;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue