Skip to content

Instantly share code, notes, and snippets.

@2color

2color/references.js

Created Nov 16, 2012
Embed
What would you like to do?
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
You can’t perform that action at this time.