Javascript Reference Outer Object From Inner Object
- by Akidi
Okay, I see a few references given for Java, but not javascript ( which hopefully you know is completely different ). So here's the code specific :
function Sandbox() {
var args = Array.prototype.slice.call(arguments)
, callback = args.pop()
, modules = (args[0] && typeof args[0] === 'string' ? args : args[0])
,…