Skip to content

Conversation

@bitinn
Copy link

@bitinn bitinn commented Feb 16, 2015

Fix #50, by not using doc.body until Sketch.create() is called.

Note that you still need dom ready for Sketch.create() to work, I updated the drawing example to demonstrate this requirement.

Both test cases and demos have been ran successfully to confirm this change is working.

PS: given both window and document are in global context, I find passing both this and this.document a bit unnecessary, so clean that up a bit as well.

sc0ttj added a commit to sc0ttj/sketch.js that referenced this pull request Mar 4, 2021
Fix soulwire#50, by not using doc.body until Sketch.create() is called.

Note that you still need the DOM ready for Sketch.create() to work

from soulwire#67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc is null if script is included in the head

1 participant