In the middle of several good, solid changes and additions to main.js, which will be rolled into Bigwheel. I'm not finished, but felt I needed to commit some of the changes I've made over the last couple days. This new main.js has not been pushed live.
In the middle of several good, solid changes and additions to main.js, which will be rolled into Bigwheel. I'm not finished, but felt I needed to commit some of the changes I've made over the last couple days. This new main.js has not been pushed live.

- Moved over some of the best objects and methods from codesample.js, including motion, env, dom, nav and StopAllListeners().

- Fixed bW.imgswaps.preload(). There was string weirdness with WebKit browsers.

- Added an immediate function that detects which style model (getComputedStyle or currentStyle for older IE) the browser is using. This is the init-time branching pattern. It sets an environmental property at bW.env.style_model.

- Added hypenToCamelCase() to the strings object.

- Started stripping slideBg() into slide(). The idea is that slide() becomes a helper that does the math for other functions that pass it arguments based on the type of animation. This is what prompted detecting the style model at page load. This isn't finished, and comments mark it as such. Still, I was past due for a commit.

parisminton/james.da.ydrea.ms