Monthly Archives: April 2012

Different require proof of concept, abusing eval for the sake of clearer definitions

// Sample module libraries (would probably be in their own files) someModules = { testModule: {test: function(){console.log(“test from someModule”)}}, anotherModule: { doStuff: function(){console.log(“Doin stuffs!”);}} }; sampleRequire = function() { // Load the modules for (var i=arguments.length-2; i>=0; –i){ // Create … Continue reading

Posted in Uncategorized | Tagged | Leave a comment