Hey Voltron!
We're not going to get rid of the curl() and define() globals any time soon. There are some web app architectures that obviously require a global or two. Also, as I realized after posting on this thread, it's very complicated to do script loading in today's browsers without at least one global.
FWIW, inline script elements are problematic for several reasons. Sorry, to pick on your code, but...
1) They have been linked with performance issues (at least in some browsers)
2) They violate the basic "Separation of Concerns" rule
You may want to investigate some of the cool in-browser MVC frameworks out there. I'd encourage you to investigate the innovative cujojs/cola.js, but it's still in "alpha" (dev branch) and we haven't even documented it, yet.
Regards,
-- John
On Tuesday, September 18, 2012 9:50:33 AM UTC-4, voltron wrote: