Setting up a namespace this way instead of with a function as we are using npm and Browserify. We effectively go with a mixin strategy, treating the namespace as an object (which it always was). We override the effects of rquires with util.extend Without util.extend we dont quite get the namespace effect when we browserify
extend - adds objects to our master coffeegl object, namespace style
If we are in a browser add to the window object
Add extra classes to our coffeegl namespace
_setupFrame - the accepted method for setting up onEachFrame in various browsers TODO - We should record the apps listening on this so we can pause individual ones?
Check to make sure we arent duplicating contexts and run funcs (due to restarting)
Check to make sure we arent duplicating contexts and run funcs (due to restarting)
Resources
http://www.yuiblog.com/blog/2007/06/12/module-pattern/
https://github.com/field/FieldKit.js
TODO