Skip to content

Instantly share code, notes, and snippets.

@AdrienGiboire
Created October 27, 2011 14:36
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 AdrienGiboire/1319715 to your computer and use it in GitHub Desktop.
Save AdrienGiboire/1319715 to your computer and use it in GitHub Desktop.
function point() {
function b(b) {
a.position += b;
}
var a = {};
return a.position = 0, a.up = function() {
a.move(10);
}, a.down = function() {
a.move(-10);
}, a;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment