Always call View#draw() since it won't redraw internally if nothing has changed.

This commit is contained in:
Jürg Lehni 2011-08-01 11:02:00 +01:00
parent 6b6d5909c1
commit 3fc21cd4b6

View file

@ -193,12 +193,9 @@ var PaperScript = this.PaperScript = new function() {
}
if (view) {
view.onResize = onResize;
if (onFrame) {
view.setOnFrame(onFrame);
} else {
// Automatically draw view at the end.
view.draw();
}
view.setOnFrame(onFrame);
// Automatically draw view at the end.
view.draw();
}
}).call(scope);
}