Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dom ready issue #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix dom ready issue #67

wants to merge 2 commits into from

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