Created
November 16, 2012 11:07
-
-
Save 2color/4086467 to your computer and use it in GitHub Desktop.
Object References in JS
This file contains 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
(function(exports) { | |
var object1 = { name : 'daniel' }; | |
// make a reference to the local variable | |
exports.globalObject = { reference : object1 }; | |
})(window); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment