Skip to content

Instantly share code, notes, and snippets.

@theefer
Created May 25, 2016 14:31
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 theefer/63fd78e947c020b545e75c057ac22aa9 to your computer and use it in GitHub Desktop.
Save theefer/63fd78e947c020b545e75c057ac22aa9 to your computer and use it in GitHub Desktop.
(function(win) {
function FooBar() { };
function Node() { };
win.darttest = {
FooBar: FooBar,
Node: Node,
getFooBar: function() {
return new FooBar();
},
getNode = function() {
return new Node();
}
};
FooBar.prototype.test1 = function() {
return 'FooBar.test1';
};
Node.prototype.test2 = function() {
return 'Node.test2';
};
})(window);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment