Skip to content

Instantly share code, notes, and snippets.

@puzzlet
Created November 19, 2012 04:58
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 puzzlet/4109049 to your computer and use it in GitHub Desktop.
Save puzzlet/4109049 to your computer and use it in GitHub Desktop.
어서 와
var super_star = function() { // 어서 와
function super_star() { // 들어와
// 처음이지?
};
var property;
super_star.property = function (value) { // 어서 와
if (value !== undefined) { // 들어와
property = value;
return this;
}
if (property === undefined) { // 처음이지?
property = 0;
}
return property;
}
return super_star;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment