Skip to content

Instantly share code, notes, and snippets.

@ww24
Created July 1, 2012 16:11
Show Gist options
  • Save ww24/3028836 to your computer and use it in GitHub Desktop.
Save ww24/3028836 to your computer and use it in GitHub Desktop.
なにこれ
function mie(name, output) {
var that = this;
output = output ? output : alert;
function create(str) {
return function () {
output(this.name + str);
return this;
};
}
this.name = name;
this.call = create("!");
this.nade = create("なでなでー♪");
this.mof = create("もふもふっ");
this.create = function (key, str) {
this[key] = create(str);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment