Skip to content

Instantly share code, notes, and snippets.

@2color
Created November 16, 2012 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2color/4086467 to your computer and use it in GitHub Desktop.
Save 2color/4086467 to your computer and use it in GitHub Desktop.
Object References in JS
(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