default to no draw delay but allow as a setting

This commit is contained in:
Gavin McDonald
2018-09-14 19:53:15 -04:00
parent 4b5621b074
commit 491982cedb
2 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ export default class Sketch {
this.draw = settings.draw || noop;
this.resize = settings.resize || noop;
this.drawDelay = settings.drawDelay || 50;
this.drawDelay = settings.drawDelay;
this.container = settings.element || document.body;
window.addEventListener('resize', this.onResize);