mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Make directly setting view.onFrame work again.
This commit is contained in:
parent
79caf66a23
commit
aec19b9494
1 changed files with 2 additions and 1 deletions
|
@ -319,7 +319,8 @@ paper.PaperScope.prototype.PaperScript = (function(root) {
|
|||
size: view.size,
|
||||
delta: new Point()
|
||||
});
|
||||
view.setOnFrame(onFrame);
|
||||
if (onFrame)
|
||||
view.setOnFrame(onFrame);
|
||||
// Automatically draw view at the end.
|
||||
view.draw();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue