News for hackers. Stuff that matters.
Re:Virtual-dom – A Virtual DOM and diffing algorithm by woah on Thursday April 02, 2015 @11:48AM (#9311421)
This does not use require.js, it looks like it is using CommonJS. If you really want to put stuff in the global scope, which is a bad idea and was one of the biggest shortcomings of js for a long time, maybe this will have some answers for you: http://www.mattburkedev.com/export-a-global-to-the-window-ob...
Re:Virtual-dom – A Virtual DOM and diffing algorithm by jamestomasino on Thursday April 02, 2015 @08:04PM (#9313897)
Yeah, I'm not looking to put things in the global scope, but rather to avoid using AMD module loading. I'm looking for a way to explicitly load the individual JS files in the proper order. Maintaining namespacing is great.
Re:Virtual-dom – A Virtual DOM and diffing algorithm by woah on Friday April 03, 2015 @01:15PM (#9317090)
Well, the example is CommonJS, not AMD.