Skip to content

Commit 3fc21cd

Browse files
committed
Always call View#draw() since it won't redraw internally if nothing has changed.
1 parent 6b6d590 commit 3fc21cd

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/core/PaperScript.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,9 @@ var PaperScript = this.PaperScript = new function() {
193193
}
194194
if (view) {
195195
view.onResize = onResize;
196-
if (onFrame) {
197-
view.setOnFrame(onFrame);
198-
} else {
199-
// Automatically draw view at the end.
200-
view.draw();
201-
}
196+
view.setOnFrame(onFrame);
197+
// Automatically draw view at the end.
198+
view.draw();
202199
}
203200
}).call(scope);
204201
}

0 commit comments

Comments
 (0)