Created
October 19, 2010 10:22
-
-
Save markstickley/633972 to your computer and use it in GitHub Desktop.
Is this even possible?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var object = function(){ | |
var foo = 'bar'; | |
var woo = 'yay'; | |
var r = {}; | |
r.getVar = function(name){ | |
// ??? | |
}; | |
return r; | |
}(); | |
object.getVar('foo'); // should return 'bar' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment