Skip to content

Instantly share code, notes, and snippets.

@skrat
Created September 23, 2013 08:56
Show Gist options
  • Save skrat/6668100 to your computer and use it in GitHub Desktop.
Save skrat/6668100 to your computer and use it in GitHub Desktop.
(function(root) {
function foo() {
console.log("foo");
}
function foo2() {
console.log("foo2");
}
var test = {
'a':foo,
'b':foo2,
'c':function() {
console.log("foo3");
}
}
root.test = test;
var g_myObject=[
"foo","foo1","foo2"
]
root.g_myObject = g_myObject;
})(module !== undefined ? module.exports : window);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment