Allow spin to be required on server. #283

Merged
merged 1 commit into from Mar 18, 2015

Projects

None yet

2 participants

@davidmccabe

This change allows Spin to be required as a Common JS module without having a DOM available. It also consolidates the initialization code into one place.

This is crucial for using Spin in isomorphic apps. Nothing should be affected other than this ability being added.

I wasn't sure why the stylesheet initialization code was in a IEFE, so I left it as is.

@fgnass fgnass merged commit 5fbe9cf into fgnass:master Mar 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment