mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-27 06:10:14 -04:00
Define Callback code for callback based event handling (#atach() / #detach() #fire()) and start implementing it in View.
This commit is contained in:
parent
6713d6aaa8
commit
256e48b511
4 changed files with 202 additions and 64 deletions
src/core
|
@ -191,7 +191,7 @@ var PaperScript = this.PaperScript = new function() {
|
|||
});
|
||||
}
|
||||
if (view) {
|
||||
view.onResize = onResize;
|
||||
view.setOnResize(onResize);
|
||||
view.setOnFrame(onFrame);
|
||||
// Automatically draw view at the end.
|
||||
view.draw();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue