Is it possible to somehow pass the scope of a function to another?
For example,
function a(){ var x = 5; var obj = {..}; b()
function a(){ var x = 5; var obj = {..}; var b = function() { document.println(x); } b.call(); }