Define Callback code for callback based event handling (#atach() / #detach() #fire()) and start implementing it in View.

This commit is contained in:
Jürg Lehni 2011-11-11 18:29:28 +01:00
parent 6713d6aaa8
commit 256e48b511
4 changed files with 202 additions and 64 deletions

View file

@ -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();