soulwire / sketch.js

Cross-Platform JavaScript Creative Coding Framework
MIT License
4.09k stars 430 forks source link

`defaults.container` is `undefined` when script is included in head #43

Closed soulwire closed 11 years ago

soulwire commented 11 years ago

The default container value is document.body but of course this doesn't exist when the script is included in the head of the document. Although doing so isn't good practice, this shouldn't cause an error when no alternate container is provided.